The pulley joint is connected to two bodies and two fixed ground
points. The pulley supports a ratio such that: length1 + ratio * length2
<= constant Yes, the force transmitted is scaled by the ratio. The
pulley also enforces a maximum length limit on both sides. This is useful
to prevent one side of the pulley hitting the top.
|
|
|
|
|
|
|
__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_b2PulleyJoint(b2PulleyJoint self) |
|
|
|
|
|
|
|
|
|
|
|
|
|
InitVelocityConstraints(...)
b2PulleyJoint_InitVelocityConstraints(b2PulleyJoint self, b2TimeStep
step) |
source code
|
|
|
SolveVelocityConstraints(...)
b2PulleyJoint_SolveVelocityConstraints(b2PulleyJoint self, b2TimeStep
step) |
source code
|
|
|
SolvePositionConstraints(...)
b2PulleyJoint_SolvePositionConstraints(b2PulleyJoint 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
|
|
ground
b2PulleyJoint_ground_get(b2PulleyJoint self) -> b2Body
|
|
groundAnchor1
b2PulleyJoint_groundAnchor1_get(b2PulleyJoint self) -> b2Vec2
|
|
groundAnchor2
b2PulleyJoint_groundAnchor2_get(b2PulleyJoint self) -> b2Vec2
|
|
localAnchor1
b2PulleyJoint_localAnchor1_get(b2PulleyJoint self) -> b2Vec2
|
|
localAnchor2
b2PulleyJoint_localAnchor2_get(b2PulleyJoint self) -> b2Vec2
|
|
u1
b2PulleyJoint_u1_get(b2PulleyJoint self) -> b2Vec2
|
|
u2
b2PulleyJoint_u2_get(b2PulleyJoint self) -> b2Vec2
|
|
constant
b2PulleyJoint_constant_get(b2PulleyJoint self) -> float32
|
|
ratio
b2PulleyJoint_ratio_get(b2PulleyJoint self) -> float32
|
|
maxLength1
b2PulleyJoint_maxLength1_get(b2PulleyJoint self) -> float32
|
|
maxLength2
b2PulleyJoint_maxLength2_get(b2PulleyJoint self) -> float32
|
|
pulleyMass
b2PulleyJoint_pulleyMass_get(b2PulleyJoint self) -> float32
|
|
limitMass1
b2PulleyJoint_limitMass1_get(b2PulleyJoint self) -> float32
|
|
limitMass2
b2PulleyJoint_limitMass2_get(b2PulleyJoint self) -> float32
|
|
impulse
b2PulleyJoint_impulse_get(b2PulleyJoint self) -> float32
|
|
limitImpulse1
b2PulleyJoint_limitImpulse1_get(b2PulleyJoint self) -> float32
|
|
limitImpulse2
b2PulleyJoint_limitImpulse2_get(b2PulleyJoint self) -> float32
|
|
state
b2PulleyJoint_state_get(b2PulleyJoint self) -> b2LimitState
|
|
limitState1
b2PulleyJoint_limitState1_get(b2PulleyJoint self) -> b2LimitState
|
|
limitState2
b2PulleyJoint_limitState2_get(b2PulleyJoint self) -> b2LimitState
|
|
length1
GetLength1(self) -> float32
|
|
length2
GetLength2(self) -> float32
|
|
body1
GetBody1(self) -> b2Body
|
|
body2
GetBody2(self) -> b2Body
|
|
collideConnected
GetCollideConnected(self) -> bool
|
|
type
GetType(self) -> b2JointType
|
|
userData
GetUserData(self) -> PyObject
|