Class pymunk.Contact

Methods

  __init__(self, contact)

Properties

  position
Contact position
  normal
Contact normal
  distance
Penetration distance
  jn_acc
The normal component of the accumulated (final) impulse applied to resolve the collision.
  jt_acc
The tangential component of the accumulated (final) impulse applied to resolve the collision.

Property Details

position

Contact position

normal

Contact normal

distance

Penetration distance

jn_acc

The normal component of the accumulated (final) impulse applied to resolve the collision. Will not be valid until after the call to Space.step() returns

jt_acc

The tangential component of the accumulated (final) impulse applied to resolve the collision. Will not be valid until after the call to Space.step() returns