- Preparing search index...
- The search index is not available
p2-es
Constructors
constructor
- new RaycastResult(): RaycastResult
-
Properties
body
faceIndex
faceIndex: number
fraction
fraction: number
isStopped
isStopped: boolean
normal
shape
Methods
getHitDistance
- getHitDistance(ray): number
-
Returns number
getHitPoint
- getHitPoint(out, ray): Vec2
-
hasHit
- hasHit(): boolean
-
Returns boolean
reset
- reset(): void
-
Returns void
set
- set(normal, shape, body, fraction, faceIndex): void
-
Parameters
-
-
-
-
fraction: number
-
faceIndex: number
Returns void
shouldStop
- shouldStop(ray): boolean
-
Returns boolean
stop
- stop(): void
-
Returns void
Storage for Ray casting hit data.