CollisionEvent

constructor(selfKey: Any, otherKey: Any, impulse: Float, normalX: Float, normalY: Float)

Parameters

selfKey

Key of the body that owns the listener (the “this” body).

otherKey

Key of the other body involved in the collision.

impulse

Contact impulse magnitude (engine-defined units).

normalX

X component of the reported collision normal.

normalY

Y component of the reported collision normal.