shapeCastResult.d.ts 441 B

12345678910111213141516
  1. import { CastingResult } from "./castingResult";
  2. /**
  3. * Class representing a contact point produced in a shape cast
  4. */
  5. export declare class ShapeCastResult extends CastingResult {
  6. private _hitFraction;
  7. /**
  8. * Gets the hit fraction along the casting ray
  9. */
  10. get hitFraction(): number;
  11. /**
  12. * Sets the hit fraction along the casting ray
  13. * @param fraction
  14. */
  15. setHitFraction(fraction: number): void;
  16. }