CastHit

Result of a ray cast or shape cast query. Access via the 'physics' submodule.

Experimental API:

The physics submodule is a VERY experimental and new API that is highly susceptible to breaking changes in the future.

Properties


NameDescriptionType
bodyThe body that was hit.Body
pointThe point of the hit in world coordinates.Vec2
normalThe normal vector of the hit surface.Vec2
fractionThe fraction along the cast path at which the hit occurred.float