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.

24 lines 603 B
import { CastingResult } from "./castingResult.js"; /** * Class representing a contact point produced in a shape cast */ export class ShapeCastResult extends CastingResult { constructor() { super(...arguments); this._hitFraction = 0; } /** * Gets the hit fraction along the casting ray */ get hitFraction() { return this._hitFraction; } /** * Sets the hit fraction along the casting ray * @param fraction */ setHitFraction(fraction) { this._hitFraction = fraction; } } //# sourceMappingURL=shapeCastResult.js.map