MotorJoint constructor

MotorJoint(
  1. IWorldPool pool,
  2. MotorJointDef def
)

Implementation

MotorJoint(IWorldPool pool, MotorJointDef def) : super(pool, def) {
  _linearOffset.setFrom(def.linearOffset);
  _angularOffset = def.angularOffset;

  _angularImpulse = 0.0;

  _maxForce = def.maxForce;
  _maxTorque = def.maxTorque;
  _correctionFactor = def.correctionFactor;
}