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

Class Circle

object --+    
         |    
     Shape --+
             |
            Circle

A circle shape defined by a radius
Instance Methods
 
__init__(self, body, radius, offset)
body is the body attach the circle to, offset is the offset from the body's center of gravity in body local coordinates.
 
__del__(self) (Inherited from pymunk.Shape)
 
cache_bb(self) (Inherited from pymunk.Shape)

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

Properties
  radius
  center
Center.
  body (Inherited from pymunk.Shape)
  collision_type (Inherited from pymunk.Shape)
  elasticity
Elasticity of the shape. (Inherited from pymunk.Shape)
  friction
Friction coefficient. (Inherited from pymunk.Shape)
  group
Shapes in the same non-zero group do not generate collisions. (Inherited from pymunk.Shape)
  id (Inherited from pymunk.Shape)
  layers
Shapes only collide if they are in the same bit-planes. (Inherited from pymunk.Shape)
  surface_velocity
The surface velocity of the object. (Inherited from pymunk.Shape)

Inherited from object: __class__

Method Details

__init__(self, body, radius, offset)
(Constructor)

 
body is the body attach the circle to, offset is the offset from the body's center of gravity in body local coordinates.
Overrides: object.__init__

Property Details

radius

Get Method:
_get_radius(self)
Set Method:
_set_radius(self, r)

center

Center. (body space coordinates)
Get Method:
_get_center(self)