Developer   API   Game Development   Box2D   Native   b2RevoluteJoint

b2RevoluteJoint(native)

A revolute joint constrains two bodies to share a common point while they are free to rotate about the point.

Properties

  • enableLimit : Boolean
    Enable / disable joint limits.
  • enableMotor : Boolean
    Enable / disable the joint motor.
  • lowerLimit : Float
    The lower angle for the joint limit (radians).
  • motorSpeed : Float
    The desired motor speed (usually in radians per second)
  • motorTorque : Float
    The maximum motor torque, usually in N-m.
  • upperLimit : Float
    The upper angle for the joint limit (radians).

Methods

  • getLimits() : Multivalue
    Another way to get lower and upper limit.
  • setLimits(lower, upper) : b2RevoluteJoint
    Another way to set lower and upper limit

Remarks

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.

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