A revolute joint constrains to bodies to share a common point while
they are free to rotate about the point. The relative rotation about the
shared point is the joint angle. You can limit the relative rotation with
a joint limit that specifies a lower and upper angle. You can use a motor
to drive the relative rotation about the shared point. A maximum motor
torque is provided so that infinite forces are not generated.
|
|
|
|
|
|
|
__setstate__(self,
data)
The factory output cannot be created just yet, so store the necessary
information to create it later. |
source code
|
|
|
|
|
__swig_destroy__(...)
delete_b2RevoluteJoint(b2RevoluteJoint self) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SetLimits(...)
b2RevoluteJoint_SetLimits(b2RevoluteJoint self, float32 lower,
float32 upper) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
InitVelocityConstraints(...)
b2RevoluteJoint_InitVelocityConstraints(b2RevoluteJoint self,
b2TimeStep step) |
source code
|
|
|
SolveVelocityConstraints(...)
b2RevoluteJoint_SolveVelocityConstraints(b2RevoluteJoint self,
b2TimeStep step) |
source code
|
|
|
SolvePositionConstraints(...)
b2RevoluteJoint_SolvePositionConstraints(b2RevoluteJoint self,
float32 baumgarte) -> bool |
source code
|
|
|
ClearUserData(...)
b2Joint_ClearUserData(b2Joint self) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
asDistanceJoint(...)
b2Joint_asDistanceJoint(b2Joint self) -> b2DistanceJoint |
source code
|
|
|
asGearJoint(...)
b2Joint_asGearJoint(b2Joint self) -> b2GearJoint |
source code
|
|
|
asLineJoint(...)
b2Joint_asLineJoint(b2Joint self) -> b2LineJoint |
source code
|
|
|
asMouseJoint(...)
b2Joint_asMouseJoint(b2Joint self) -> b2MouseJoint |
source code
|
|
|
asPrismaticJoint(...)
b2Joint_asPrismaticJoint(b2Joint self) -> b2PrismaticJoint |
source code
|
|
|
asPulleyJoint(...)
b2Joint_asPulleyJoint(b2Joint self) -> b2PulleyJoint |
source code
|
|
|
asRevoluteJoint(...)
b2Joint_asRevoluteJoint(b2Joint self) -> b2RevoluteJoint |
source code
|
|
|
getAsType(self)
Return a typecasted version of the joint |
source code
|
|
|
|
|
thisown
The membership flag
|
|
localAnchor1
b2RevoluteJoint_localAnchor1_get(b2RevoluteJoint self) -> b2Vec2
|
|
localAnchor2
b2RevoluteJoint_localAnchor2_get(b2RevoluteJoint self) -> b2Vec2
|
|
impulse
b2RevoluteJoint_impulse_get(b2RevoluteJoint self) -> b2Vec3
|
|
motorImpulse
b2RevoluteJoint_motorImpulse_get(b2RevoluteJoint self) -> float32
|
|
mass
b2RevoluteJoint_mass_get(b2RevoluteJoint self) -> b2Mat33
|
|
motorMass
b2RevoluteJoint_motorMass_get(b2RevoluteJoint self) -> float32
|
|
enableMotor
b2RevoluteJoint_enableMotor_get(b2RevoluteJoint self) -> bool
|
|
maxMotorTorque
b2RevoluteJoint_maxMotorTorque_get(b2RevoluteJoint self) ->
float32
|
|
motorSpeed
b2RevoluteJoint_motorSpeed_get(b2RevoluteJoint self) -> float32
|
|
enableLimit
b2RevoluteJoint_enableLimit_get(b2RevoluteJoint self) -> bool
|
|
referenceAngle
b2RevoluteJoint_referenceAngle_get(b2RevoluteJoint self) ->
float32
|
|
lowerAngle
b2RevoluteJoint_lowerAngle_get(b2RevoluteJoint self) -> float32
|
|
upperAngle
b2RevoluteJoint_upperAngle_get(b2RevoluteJoint self) -> float32
|
|
limitState
b2RevoluteJoint_limitState_get(b2RevoluteJoint self) ->
b2LimitState
|
|
body1
GetBody1(self) -> b2Body
|
|
body2
GetBody2(self) -> b2Body
|
|
collideConnected
GetCollideConnected(self) -> bool
|
|
type
GetType(self) -> b2JointType
|
|
userData
GetUserData(self) -> PyObject
|