Skip to content

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 ​

PropertyTypeDescriptionDefined in
distancenumberHow far along the direction the ray or shape travelled before touching.packages/core/src/javascript/collision/sweep.ts:21
normalVector3The collider's surface normal there, pointing out toward the ray or shape.packages/core/src/javascript/collision/sweep.ts:25
pointVector3The touching point, on the collider's surface.packages/core/src/javascript/collision/sweep.ts:23

Released under the MIT License.