Package pymunk :: Class Contact
[frames] | no frames]

Class Contact

object --+
         |
        Contact

Instance Methods
 
__init__(self, contact)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

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.

Inherited from object: __class__

Method Details

__init__(self, contact)
(Constructor)

 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

Property Details

position

Contact position
Get Method:
_get_position(self)

normal

Contact normal
Get Method:
_get_normal(self)

distance

Penetration distance
Get Method:
_get_distance(self)

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
Get Method:
_get_distance(self)

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
Get Method:
_get_jt_acc(self)