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

type b2BodyDef

source code


A body definition holds all the data needed to construct a rigid body. You can safely re-use body definitions.

Instance Methods [hide private]
b2BodyDef
__init__(self)
This constructor sets the body definition default values.
source code
 
__repr__(self) source code
 
__getstate__(self, additional_ignore=[])
Returns a dictionary representation of self, with dict(var=value [, ...])
source code
 
__setstate__(self, dict)
Takes each variable=value pair in the dictionary and sets the attributes based on them
source code
 
__del__(self) source code
 
__swig_destroy__(...)
delete_b2BodyDef(b2BodyDef self)
 
GetUserData(...)
b2BodyDef_GetUserData(b2BodyDef self) -> PyObject
source code
 
SetUserData(...)
b2BodyDef_SetUserData(b2BodyDef self, PyObject data)
source code
 
ClearUserData(...)
b2BodyDef_ClearUserData(b2BodyDef self)
source code
Properties [hide private]
  thisown
The membership flag
  massData
b2BodyDef_massData_get(b2BodyDef self) -> b2MassData
  position
b2BodyDef_position_get(b2BodyDef self) -> b2Vec2
  angle
b2BodyDef_angle_get(b2BodyDef self) -> float32
  linearDamping
b2BodyDef_linearDamping_get(b2BodyDef self) -> float32
  angularDamping
b2BodyDef_angularDamping_get(b2BodyDef self) -> float32
  allowSleep
b2BodyDef_allowSleep_get(b2BodyDef self) -> bool
  isSleeping
b2BodyDef_isSleeping_get(b2BodyDef self) -> bool
  fixedRotation
b2BodyDef_fixedRotation_get(b2BodyDef self) -> bool
  isBullet
b2BodyDef_isBullet_get(b2BodyDef self) -> bool
  userData
GetUserData(self) -> PyObject
Method Details [hide private]

__init__(self)
(Constructor)

source code 

This constructor sets the body definition default values.

Returns: b2BodyDef
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 
Overrides: object.__repr__
(inherited documentation)

__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. 


Property Details [hide private]

thisown

The membership flag

massData

b2BodyDef_massData_get(b2BodyDef self) -> b2MassData

position

b2BodyDef_position_get(b2BodyDef self) -> b2Vec2

angle

b2BodyDef_angle_get(b2BodyDef self) -> float32

linearDamping

b2BodyDef_linearDamping_get(b2BodyDef self) -> float32

angularDamping

b2BodyDef_angularDamping_get(b2BodyDef self) -> float32

allowSleep

b2BodyDef_allowSleep_get(b2BodyDef self) -> bool

isSleeping

b2BodyDef_isSleeping_get(b2BodyDef self) -> bool

fixedRotation

b2BodyDef_fixedRotation_get(b2BodyDef self) -> bool

isBullet

b2BodyDef_isBullet_get(b2BodyDef self) -> bool

userData

GetUserData(self) -> PyObject