eulerjs API / @eulerjs/core/extend / SweepHit
SweepHit
Defined in: packages/core/src/javascript/collision/sweep.ts:19
Where a ray or swept shape first touches a collider.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
distance | number | How far along the direction the ray or shape travelled before touching. | packages/core/src/javascript/collision/sweep.ts:21 |
normal | Vector3 | The collider's surface normal there, pointing out toward the ray or shape. | packages/core/src/javascript/collision/sweep.ts:25 |
point | Vector3 | The touching point, on the collider's surface. | packages/core/src/javascript/collision/sweep.ts:23 |
