Skip to content

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 ​

PropertyModifierTypeDescriptionDefined in
bodyreadonlyBody-packages/core/src/queries.ts:36
colliderreadonlyCollider-packages/core/src/queries.ts:37
distancereadonlynumberHow far along the direction the ray or shape travelled before touching: 0 if it started inside.packages/core/src/queries.ts:39
normalreadonlyVector3The surface normal of the collider hit there, pointing back toward the ray or shape.packages/core/src/queries.ts:43
pointreadonlyVector3The touching point, on the surface of the collider hit.packages/core/src/queries.ts:41

Released under the MIT License.