Collision

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