UNPKG

@babylonjs/core

Version:

Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.

21 lines (20 loc) 536 B
import { CastingResult } from "./castingResult.js"; /** * Class representing a contact point produced in a proximity cast */ export declare class ProximityCastResult extends CastingResult { protected _hitDistance: number; /** * Gets the distance from the hit */ get hitDistance(): number; /** * Sets the distance from the start point to the hit point * @param distance */ setHitDistance(distance: number): void; /** * Resets all the values to default */ reset(): void; }