CastHit

API reference for CastHit. 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
fractionThe fraction along the cast path at which the hit occurred.float
normalThe normal vector of the hit surface.Vec2
pointThe point of the hit in world coordinates.Vec2