Instance Property

collisionImpulse

The force over time of the collision, in newton-seconds.

Declaration

@property(nonatomic, readonly) CGFloat collisionImpulse;

Discussion

This property’s value tells you how hard the bodies struck each other in a collision. For example, in a game you might allow a character to proceed unhindered after a minor collision, but take damage when struck with sufficient force.

See Also

Inspecting the Contact Properties

nodeA

The node containing the first body in the contact.

nodeB

The node containing the second body in the contact.

contactPoint

The contact point between the two physics bodies, in scene coordinates.

contactNormal

The normal vector at the contact point between the two physics bodies, in scene coordinates.

penetrationDistance

The distance of overlap, in units of scene coordinate space, between the two physics bodies.