file: ContactImpulse.aus

class: ContactImpulse

[18:7] extends: FxObj

Wraps jbox2d's ContactImpulse (com.almasb.fxgl.physics.box2d.callbacks.ContactImpulse), the payload passed to ContactListener.postSolve. Carries the normal and tangent impulses for each contact point plus the active count. The two impulse arrays are pooled, so do not retain them past the postSolve call — copy the values you need.

Methods