blaze.dynamics.joints.mouseJoint
- class
MouseJointDef
: blaze.dynamics.joints.joint.JointDef;
- Mouse joint definition. This requires a world target point,
tuning parameters, and the time step.
- this(Body body1, Body body2);
- Initialize the body and target point
- bVec2
target
;
- The initial world
target
point. This is assumed
to coincide with the body anchor initially.
- float
maxForce
;
- The maximum constraint force that can be exerted
to move the candidate body. Usually you will express
as some multiple of the weight (multiplier * mass * gravity).
- float
frequencyHz
;
- The response speed.
- float
dampingRatio
;
- The damping ratio. 0 = no damping, 1 = critical damping.
- class
MouseJoint
: blaze.dynamics.joints.joint.Joint;
- A mouse joint is used to make a point on a body track a
specified world point. This a soft constraint with a maximum
force. This allows the constraint to stretch and without
applying huge forces.
- bVec2
anchor1
();
- Implements b2Joint.
- bVec2
anchor2
();
- Implements b2Joint.
- bVec2
reactionForce
(float inv_dt);
- Implements b2Joint.
- float
reactionTorque
(float inv_dt);
- Implements b2Joint.
- void
setTarget
(bVec2 target);
- Use this to update the target point.
|