Constructors
constructor
Properties
body
faceIndex
faceIndex: number
fraction
fraction: number
isStopped
isStopped: boolean
normal
shape
Methods
getHitDistance
- getHitDistance(ray: Ray): number
Parameters
Returns number
getHitPoint
Parameters
hasHit
Returns boolean
reset
Returns void
set
- set(normal: Vec2, shape: Shape, body: Body, fraction: number, faceIndex: number): void
Parameters
fraction: number
faceIndex: number
Returns void
shouldStop
- shouldStop(ray: Ray): boolean
Parameters
Returns boolean
stop
Returns void
Storage for Ray casting hit data.