Developer   API   Game Development   Box2D   Native   b2PrismaticJoint

b2PrismaticJoint(native)

A prismatic joint provides one degree of freedom: translation along an axis fixed in body1.

Properties

  • enableLimit : Boolean
    Enable / disable the joint limit.
  • enableMotor : Boolean
    Enable / disable the joint motor.
  • lowerLimit : Float
    The lower joint limit, usually in meters.
  • motorForce : Float
    The current motor force, usually in N.
  • motorSpeed : Float
    The motor speed, usually in meters per second.
  • upperLimit : Float
    The upper joint limit, usually in meters.

Methods

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

Remarks

Relative rotation is prevented. You can use a joint limit to restrict the range of motion and a joint motor to drive the motion or to model joint friction.

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