eulerjs API / @eulerjs/core / QueryHit
QueryHit
Defined in: packages/core/src/queries.ts:35
Where a ray, or a shape swept along a line, first touches a collider.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
body | readonly | Body | - | packages/core/src/queries.ts:36 |
collider | readonly | Collider | - | packages/core/src/queries.ts:37 |
distance | readonly | number | How far along the direction the ray or shape travelled before touching: 0 if it started inside. | packages/core/src/queries.ts:39 |
normal | readonly | Vector3 | The surface normal of the collider hit there, pointing back toward the ray or shape. | packages/core/src/queries.ts:43 |
point | readonly | Vector3 | The touching point, on the surface of the collider hit. | packages/core/src/queries.ts:41 |
