blaze.dynamics.joints.lineJoint



class LineJointDef : blaze.dynamics.joints.joint.JointDef;
Line joint definition. This requires defining a line of

motion using an axis and an anchor point. The definition uses local

anchor points and a local axis so that the initial configuration

can violate the constraint slightly. The joint translation is zero

when the local anchor points coincide in world space. Using local

anchors and a local axis helps when saving and loading a game.

bVec2 localAnchor1 ;
The local anchor point relative to body1's origin.

bVec2 localAnchor2 ;
The local anchor point relative to body2's origin.

bVec2 localAxis1 ;
The local translation axis in body1.

bool enableLimit ;
Enable/disable the joint limit.

float lowerTranslation ;
The lower translation limit, usually in meters.

float upperTranslation ;
The upper translation limit, usually in meters.

bool enableMotor ;
Enable/disable the joint motor.

float maxMotorForce ;
The maximum motor torque, usually in N-m.

float motorSpeed ;
The desired motor speed in radians per second.

class LineJoint : blaze.dynamics.joints.joint.Joint;
A line joint. This joint provides one degree of freedom: translation

along an axis fixed in body1. 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.

Page was generated with on Tue Feb 10 19:13:11 2009