Developer   API   Game Development   Box2D   Native   b2PulleyJoint

b2PulleyJoint(native)

The pulley joint is connected to two bodies and two fixed ground points.

Methods

  • getGroundAnchorA() : Multivalue
    Get the first ground anchor.
  • getGroundAnchorB() : Multivalue
    Get the second ground anchor.
  • getLength1() : Float
    Get the current length of the segment attached to bodyA.
  • getLength2() : Float
    Get the current length of the segment attached to bodyB.
  • getRatio() : Float
    Get the pulley ratio.

Remarks

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.

API Navigation
Skip Navigation Links.
Expand <span>User Interface</span> User Interface
Expand <span>Core & System</span> Core & System
Expand <span>Graphics</span> Graphics
Expand <span>Files and Databases</span> Files and Databases
Expand <span>Crypto</span> Crypto
Expand <span>Native User Interface</span> Native User Interface
Expand <span>Net</span> Net
Expand <span>Media</span> Media
Expand <span>Sensor</span> Sensor
Collapse <span>Game Development</span> Game Development
Collapse <span>Box2D</span> Box2D
Collapse <span>Native</span> Native
b2World
b2Body
b2Contact
b2CircleShape
b2PolygonShape
b2DistanceJoint
b2FrictionJoint
b2GearJoint
b2MouseJoint
b2PrismaticJoint
b2PulleyJoint
b2RevoluteJoint
b2WeldJoint
PhysicsWorld
PhysicsBody
PhysicsContact
PhisicsScene
PhisicsSprite
Expand <span>Animation</span> Animation
Expand <span>Game2D</span> Game2D
Expand <span>Particle System</span> Particle System
Expand <span>Scene Transition</span> Scene Transition
Game
Canvas
Bitmap
Paint