Rotational3Constraint constructor

Rotational3Constraint(
  1. Joint joint,
  2. LimitMotor limitMotor1,
  3. LimitMotor limitMotor2,
  4. LimitMotor limitMotor3,
)

A three-axis rotational constraint for various joints.

joint joint of the rotation constraint

limitMotor1 limit and motor of the rotation constraint

limitMotor2 limit and motor of the rotation constraint

limitMotor3 limit and motor of the rotation constraint

Implementation

Rotational3Constraint(Joint joint,this.limitMotor1,this.limitMotor2,this.limitMotor3):super(joint.config) {
  b1=joint.body1!;
  b2=joint.body2!;

  a1=b1.angularVelocity;
  a2=b2.angularVelocity;
  i1=b1.inverseInertia;
  i2=b2.inverseInertia;
}