PulleyJoint constructor
PulleyJoint(
- PulleyJointDef<
Body, Body> def
Implementation
PulleyJoint(PulleyJointDef def) : super(def) {
_groundAnchorA.setFrom(def.groundAnchorA);
_groundAnchorB.setFrom(def.groundAnchorB);
localAnchorA.setFrom(def.localAnchorA);
localAnchorB.setFrom(def.localAnchorB);
assert(def.ratio != 0.0);
_ratio = def.ratio;
_lengthA = def.lengthA;
_lengthB = def.lengthB;
_constant = def.lengthA + _ratio * def.lengthB;
_impulse = 0.0;
}