Developer   API   Game Development   Box2D   Native   b2GearJoint

b2GearJoint(native)

A gear joint is used to connect two joints together. Either joint can be a revolute or prismatic joint.

Properties

  • ratio : Float
    Set/Get the gear ratio.

Remarks

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).

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