API Referencebezel
SweepHit
Contact encountered while sweeping a collider along a movement path.
Module: bezel
Contact encountered while sweeping a collider along a movement path.
Declaration
export type SweepHit = {
/**
* The position in world space.
*/
position: Position3d;
/**
* The normalized surface direction.
*/
normal: Normal3d;
/**
* The distance.
*/
distance: number;
/**
* The percentage.
*/
percentage: number;
/**
* The object.
*/
object: GameObject;
};Properties
position
The position in world space.
position: Position3d;normal
The normalized surface direction.
normal: Normal3d;distance
The distance.
distance: number;percentage
The percentage.
percentage: number;object
The object.
object: GameObject;