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

Class Contact

object --+
         |
        Contact

Contact information
Instance Methods
 
__init__(self, _contact)
Initialize a Contact object from the Chipmunk equivalent struct
 
__repr__(self)
repr(x)

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties
  position
Contact position
  normal
Contact normal
  distance
Penetration distance

Inherited from object: __class__

Method Details

__init__(self, _contact)
(Constructor)

 

Initialize a Contact object from the Chipmunk equivalent struct

Note: You should never need to create an instance of this class directly.

Overrides: object.__init__

__repr__(self)
(Representation operator)

 
repr(x)
Overrides: object.__repr__
(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)