proximityCastResult.d.ts 533 B

1234567891011121314151617181920
  1. import { CastingResult } from "./castingResult";
  2. /**
  3. * Class representing a contact point produced in a proximity cast
  4. */
  5. export declare class ProximityCastResult extends CastingResult {
  6. protected _hitDistance: number;
  7. /**
  8. * Gets the distance from the hit
  9. */
  10. get hitDistance(): number;
  11. /**
  12. * Sets the distance from the start point to the hit point
  13. * @param distance
  14. */
  15. setHitDistance(distance: number): void;
  16. /**
  17. * Resets all the values to default
  18. */
  19. reset(): void;
  20. }