physicsShapeCastQuery.d.ts 762 B

1234567891011121314151617181920212223242526272829303132
  1. import type { Quaternion, Vector3 } from "../Maths/math.vector";
  2. import type { PhysicsShape } from "./v2/physicsShape";
  3. import type { PhysicsBody } from "./v2/physicsBody";
  4. /**
  5. * Shape cast query
  6. */
  7. export interface IPhysicsShapeCastQuery {
  8. /**
  9. * The shape to query with
  10. */
  11. shape: PhysicsShape;
  12. /**
  13. * The rotation of the shape
  14. */
  15. rotation: Quaternion;
  16. /**
  17. * The start position of the query
  18. */
  19. startPosition: Vector3;
  20. /**
  21. * The end position of the query
  22. */
  23. endPosition: Vector3;
  24. /**
  25. * Should trigger collisions be considered in the query?
  26. */
  27. shouldHitTriggers: boolean;
  28. /**
  29. * Ignores the body passed if it is in the query
  30. */
  31. ignoreBody?: PhysicsBody;
  32. }