123456789101112131415161718192021222324 |
- 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
|