blaze.dynamics.joints.distanceJoint
- class
DistanceJointDef
: blaze.dynamics.joints.joint.JointDef;
- Distance joint definition. This requires defining an
anchor point on both bodies and the non-zero length of the
distance joint. The definition uses local anchor points
so that the initial configuration can violate the constraint
slightly. This helps when saving and loading a game.
@warning Do not use a zero or short length.
- this(Body body1, Body body2, bVec2 anchor1, bVec2 anchor2);
- Initialize the bodies, anchors, and length using the world
anchors.
- bVec2
localAnchor1
;
- The local anchor point relative to body1's origin.
- bVec2
localAnchor2
;
- The local anchor point relative to body2's origin.
- float
length
;
- The equilibrium
length
between the anchor points.
- float
frequencyHz
;
- The response speed.
- float
dampingRatio
;
- The damping ratio. 0 = no damping, 1 = critical damping.
- class
DistanceJoint
: blaze.dynamics.joints.joint.Joint;
- A distance joint constrains two points on two bodies
to remain at a fixed distance from each other. You can view
this as a massless, rigid rod.
|