physicsPointProximityQuery.d.ts 770 B

12345678910111213141516171819202122232425262728
  1. import type { Vector3 } from "../Maths/math.vector";
  2. import type { IRaycastQuery } from "./physicsRaycastResult";
  3. import type { PhysicsBody } from "./v2/physicsBody";
  4. /**
  5. * Interface for point proximity query.
  6. */
  7. export interface IPhysicsPointProximityQuery {
  8. /**
  9. * The position of the query
  10. */
  11. position: Vector3;
  12. /**
  13. * Maximum distance to check for collisions. Can be set to 0 to check for overlaps.
  14. */
  15. maxDistance: number;
  16. /**
  17. * Collision filter for the query.
  18. */
  19. collisionFilter: IRaycastQuery;
  20. /**
  21. * Should trigger collisions be considered in the query?
  22. */
  23. shouldHitTriggers: boolean;
  24. /**
  25. * Should the query ignore the body that is passed in?
  26. */
  27. ignoreBody?: PhysicsBody;
  28. }