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) 519 B
import { CastingResult } from "./castingResult.js"; /** * Class representing a contact point produced in a shape cast */ export declare class ShapeCastResult extends CastingResult { private _hitFraction; /** * Gets the hit fraction along the casting ray */ get hitFraction(): number; /** * Sets the hit fraction along the casting ray * @param fraction */ setHitFraction(fraction: number): void; /** * Resets all the values to default */ reset(): void; }