Package pybox2d :: Module Box2D :: Class b2CircleShape |
[hide private]
[frames] | no frames]

# type b2CircleShape

source code

A circle shape.

Instance Methods | [hide private]
__init__(self, *args, **kwargs) | source code
__repr__(self) | source code
__getstate__(self, additional_ignore=`[``]`) Returns a dictionary representation of self, with dict(var=value [, ...]) | source code
__setstate__(self, data) The factory output cannot be created just yet, so store the necessary information to create it later. | source code
_pickle_finalize(self, world=None, body=None) Finalize one of the outputs that we previously set as a dictionary. | source code
__eq__(a, b) | source code
__ne__(self, other) | source code
__swig_destroy__(...) delete_b2CircleShape(b2CircleShape self) |
GetLocalPosition(...) b2CircleShape_GetLocalPosition(b2CircleShape self) -> b2Vec2 | source code
GetRadius(...) b2CircleShape_GetRadius(b2CircleShape self) -> float32 | source code
Inherited from b2Shape
ClearUserData(...) b2Shape_ClearUserData(b2Shape self) | source code
ComputeAABB(...) b2Shape_ComputeAABB(b2Shape self, b2AABB aabb, b2XForm xf) | source code
ComputeMass(...) b2Shape_ComputeMass(b2Shape self, b2MassData massData) | source code
ComputeSubmergedArea(...) b2Shape_ComputeSubmergedArea(b2Shape self, b2Vec2 normal, float32 offset, b2XForm xf, b2Vec2 c) -> float32 | source code
ComputeSweptAABB(...) b2Shape_ComputeSweptAABB(b2Shape self, b2AABB aabb, b2XForm xf1, b2XForm xf2) | source code
GetBody(...) b2Shape_GetBody(b2Shape self) -> b2Body | source code
GetDensity(...) b2Shape_GetDensity(b2Shape self) -> float32 | source code
GetFilterData(...) b2Shape_GetFilterData(b2Shape self) -> b2FilterData | source code
GetFriction(...) b2Shape_GetFriction(b2Shape self) -> float32 | source code
GetNext(...) b2Shape_GetNext(b2Shape self) -> b2Shape | source code
GetRestitution(...) b2Shape_GetRestitution(b2Shape self) -> float32 | source code
GetSweepRadius(...) b2Shape_GetSweepRadius(b2Shape self) -> float32 | source code
GetType(...) b2Shape_GetType(b2Shape self) -> b2ShapeType | source code
GetUserData(...) b2Shape_GetUserData(b2Shape self) -> PyObject | source code
IsSensor(...) b2Shape_IsSensor(b2Shape self) -> bool | source code
SetDensity(...) b2Shape_SetDensity(b2Shape self, float32 density) | source code
SetFilterData(...) b2Shape_SetFilterData(b2Shape self, b2FilterData filter) | source code
SetFriction(...) b2Shape_SetFriction(b2Shape self, float32 friction) | source code
SetRestitution(...) b2Shape_SetRestitution(b2Shape self, float32 restitution) | source code
SetUserData(...) b2Shape_SetUserData(b2Shape self, PyObject data) | source code
TestPoint(...) b2Shape_TestPoint(b2Shape self, b2XForm xf, b2Vec2 p) -> bool | source code
TestSegment(...) TestSegment(b2XForm xf, float32 _lambda, b2Vec2 normal, b2Segment segment, float32 maxLambda) -> b2SegmentCollide b2Shape_TestSegment(b2Shape self, b2XForm xf, b2Segment segment, float32 maxLambda) -> PyObject | source code
__hash__(...) b2Shape___hash__(b2Shape self) -> int32 | source code
asCircle(...) b2Shape_asCircle(b2Shape self) -> b2CircleShape | source code
asEdge(...) b2Shape_asEdge(b2Shape self) -> b2EdgeShape | source code
asPolygon(...) b2Shape_asPolygon(b2Shape self) -> b2PolygonShape | source code
getAsType(self) Return a typecasted version of the shape | source code
typeName(self) | source code

Properties | [hide private]
| thisown The membership flag
| radius GetRadius(self) -> float32
| localPosition GetLocalPosition(self) -> b2Vec2
Inherited from b2Shape
| density GetDensity(self) -> float32
| filter GetFilterData(self) -> b2FilterData
| friction GetFriction(self) -> float32
| isSensor IsSensor(self) -> bool
| restitution GetRestitution(self) -> float32
| userData GetUserData(self) -> PyObject

Method Details | [hide private]

### __init__(self, *args, **kwargs) (Constructor) | source code
Overrides: b2Shape.__init__

### __repr__(self) (Representation operator) | source code
Overrides: b2Shape.__repr__

### __getstate__(self, additional_ignore=`[``]`) | source code
    Returns a dictionary representation of self, with
     dict(var=value [, ...])

    additional_ignore can be specified to ignore certain
    properties.
Overrides: no_pickle

### __setstate__(self, data) | source code
The factory output cannot be created just yet, so store the necessary information to create it later. Overrides: _generic_setstate

### __eq__(a, b) (Equality operator) | source code
Overrides: b2ShapeCompare

### __ne__(self, other) | source code
Overrides: b2Shape.__ne__

### GetLocalPosition(...) | source code
b2CircleShape_GetLocalPosition(b2CircleShape self) -> b2Vec2 Get the local position of this circle in its parent body.

### GetRadius(...) | source code
b2CircleShape_GetRadius(b2CircleShape self) -> float32 Get the radius of this circle.

Property Details | [hide private]

### thisown The membership flag

### radius GetRadius(self) -> float32 Get the radius of this circle.

### localPosition GetLocalPosition(self) -> b2Vec2 Get the local position of this circle in its parent body.