Revolute joint definition. This requires defining an anchor point
where the bodies are joined. The definition uses local anchor points so
that the initial configuration can violate the constraint slightly. You
also need to specify the initial relative angle for joint limits. This
helps when saving and loading a game. The local anchor points are
measured from the body's origin rather than the center of mass because:
1. you might not know where the center of mass will be. 2. if you
add/remove shapes from a body and recompute the mass, the joints will be
broken.
b2RevoluteJointDef
|
|
|
|
|
__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
|
|
|
|
|
Initialize(...)
b2RevoluteJointDef_Initialize(b2RevoluteJointDef self, b2Body body1, b2Body body2,
b2Vec2 anchor) |
source code
|
|
|
ClearUserData(...)
b2JointDef_ClearUserData(b2JointDef self) |
source code
|
|
|
GetUserData(...)
b2JointDef_GetUserData(b2JointDef self) -> PyObject |
source code
|
|
|
SetUserData(...)
b2JointDef_SetUserData(b2JointDef self, PyObject data) |
source code
|
|
|
|
|
|
|
thisown
The membership flag
|
|
localAnchor1
b2RevoluteJointDef_localAnchor1_get(b2RevoluteJointDef self) ->
b2Vec2
|
|
localAnchor2
b2RevoluteJointDef_localAnchor2_get(b2RevoluteJointDef self) ->
b2Vec2
|
|
referenceAngle
b2RevoluteJointDef_referenceAngle_get(b2RevoluteJointDef self) ->
float32
|
|
enableLimit
b2RevoluteJointDef_enableLimit_get(b2RevoluteJointDef self) ->
bool
|
|
lowerAngle
b2RevoluteJointDef_lowerAngle_get(b2RevoluteJointDef self) ->
float32
|
|
upperAngle
b2RevoluteJointDef_upperAngle_get(b2RevoluteJointDef self) ->
float32
|
|
enableMotor
b2RevoluteJointDef_enableMotor_get(b2RevoluteJointDef self) ->
bool
|
|
motorSpeed
b2RevoluteJointDef_motorSpeed_get(b2RevoluteJointDef self) ->
float32
|
|
maxMotorTorque
b2RevoluteJointDef_maxMotorTorque_get(b2RevoluteJointDef self) ->
float32
|
|
body1
b2JointDef_body1_get(b2JointDef self) -> b2Body
|
|
body2
b2JointDef_body2_get(b2JointDef self) -> b2Body
|
|
collideConnected
b2JointDef_collideConnected_get(b2JointDef self) -> bool
|
|
type
b2JointDef_type_get(b2JointDef self) -> b2JointType
|
|
userData
GetUserData(self) -> PyObject
|