RotationalEquation constructor
RotationalEquation(})
Implementation
RotationalEquation(
Body bodyA,
Body bodyB,
{
Vector3? axisA,
Vector3? axisB,
this.maxAngle = math.pi/2,
double maxForce = 1e6
}
):super(bodyA, bodyB, -maxForce, maxForce) {
this.axisA = axisA?.clone() ?? Vector3(1, 0, 0);
this.axisB = axisB?.clone() ?? Vector3(0, 1, 0);
}