A gear joint is used to connect two joints together. Either joint can
be a revolute or prismatic joint. You specify a gear ratio to bind the
motions together: coordinate1 + ratio * coordinate2 = constant The ratio
can be negative or positive. If one joint is a revolute joint and the
other joint is a prismatic joint, then the ratio will have units of
length or units of 1/length. WARNING: The revolute and prismatic joints
must be attached to fixed bodies (which must be body1 on those
joints).
|
|
|
|
|
|
|
__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_b2GearJoint(b2GearJoint self) |
|
|
|
|
|
InitVelocityConstraints(...)
b2GearJoint_InitVelocityConstraints(b2GearJoint self, b2TimeStep
step) |
source code
|
|
|
SolveVelocityConstraints(...)
b2GearJoint_SolveVelocityConstraints(b2GearJoint self, b2TimeStep
step) |
source code
|
|
|
SolvePositionConstraints(...)
b2GearJoint_SolvePositionConstraints(b2GearJoint 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
|
|
ground1
b2GearJoint_ground1_get(b2GearJoint self) -> b2Body
|
|
ground2
b2GearJoint_ground2_get(b2GearJoint self) -> b2Body
|
|
revolute1
b2GearJoint_revolute1_get(b2GearJoint self) -> b2RevoluteJoint
|
|
prismatic1
b2GearJoint_prismatic1_get(b2GearJoint self) -> b2PrismaticJoint
|
|
revolute2
b2GearJoint_revolute2_get(b2GearJoint self) -> b2RevoluteJoint
|
|
prismatic2
b2GearJoint_prismatic2_get(b2GearJoint self) -> b2PrismaticJoint
|
|
groundAnchor1
b2GearJoint_groundAnchor1_get(b2GearJoint self) -> b2Vec2
|
|
groundAnchor2
b2GearJoint_groundAnchor2_get(b2GearJoint self) -> b2Vec2
|
|
localAnchor1
b2GearJoint_localAnchor1_get(b2GearJoint self) -> b2Vec2
|
|
localAnchor2
b2GearJoint_localAnchor2_get(b2GearJoint self) -> b2Vec2
|
|
J
b2GearJoint_J_get(b2GearJoint self) -> b2Jacobian
|
|
constant
b2GearJoint_constant_get(b2GearJoint self) -> float32
|
|
ratio
b2GearJoint_ratio_get(b2GearJoint self) -> float32
|
|
mass
b2GearJoint_mass_get(b2GearJoint self) -> float32
|
|
impulse
b2GearJoint_impulse_get(b2GearJoint self) -> float32
|
|
joint1
|
|
joint2
|
|
body1
GetBody1(self) -> b2Body
|
|
body2
GetBody2(self) -> b2Body
|
|
collideConnected
GetCollideConnected(self) -> bool
|
|
type
GetType(self) -> b2JointType
|
|
userData
GetUserData(self) -> PyObject
|