Collision

Information about a collision between two bodies. 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
body_aThe first body involved in the collision.Body
body_bThe second body involved in the collision.Body
pointThe point of impact in world coordinates.Vec2
normalThe normal vector of the collision.Vec2
approach_speedThe speed at which the bodies approached each other.float