PrismaticJoint class

A prismatic joint. This joint provides one degree of freedom: translation along an axis fixed in bodyA. 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.

Inheritance

Constructors

PrismaticJoint(IWorldPool argWorld, PrismaticJointDef def)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
pool IWorldPool
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

destructor() → void
Override to handle destruction of joint
inherited
enableLimit(bool flag) → void
Enable/disable the joint limit. [...]
enableMotor(bool flag) → void
Enable/disable the joint motor. [...]
getAnchorA(Vector2 argOut) → void
get the anchor point on bodyA in world coordinates. [...]
override
getAnchorB(Vector2 argOut) → void
get the anchor point on bodyB in world coordinates. [...]
override
getBodyA() Body
get the first body attached to this joint.
inherited
getBodyB() Body
get the second body attached to this joint. [...]
inherited
getCollideConnected() bool
Get collide connected. Note: modifying the collide connect flag won't work correctly because the flag is only checked when fixture AABBs begin to overlap.
inherited
getJointSpeed() double
Get the current joint translation, usually in meters.
getJointTranslation() double
getLocalAnchorA() Vector2
getLocalAnchorB() Vector2
getLocalAxisA() Vector2
getLowerLimit() double
Get the lower joint limit, usually in meters. [...]
getMaxMotorForce() double
getMotorForce(double inv_dt) double
Get the current motor force, usually in N. [...]
getMotorSpeed() double
Get the motor speed, usually in meters per second. [...]
getNext() Joint
get the next joint the world joint list.
inherited
getReactionForce(double inv_dt, Vector2 argOut) → void
get the reaction force on body2 at the joint anchor in Newtons. [...]
override
getReactionTorque(double inv_dt) double
get the reaction torque on body2 in N*m. [...]
override
getReferenceAngle() double
getType() JointType
get the type of the concrete joint. [...]
inherited
getUpperLimit() double
Get the upper joint limit, usually in meters. [...]
initVelocityConstraints(SolverData data) → void
Internal
override
isActive() bool
Short-cut function to determine if either body is inactive. [...]
inherited
isLimitEnabled() bool
Is the joint limit enabled? [...]
isMotorEnabled() bool
Is the joint motor enabled? [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
setLimits(double lower, double upper) → void
Set the joint limits, usually in meters. [...]
setMaxMotorForce(double force) → void
Set the maximum motor force, usually in N. [...]
setMotorSpeed(double speed) → void
Set the motor speed, usually in meters per second. [...]
solvePositionConstraints(SolverData data) bool
This returns true if the position errors are within tolerance. Internal.
override
solveVelocityConstraints(SolverData data) → void
Internal
override
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited