RotationalEquation constructor

RotationalEquation(
  1. Body bodyA,
  2. Body bodyB, {
  3. Vec3? axisA,
  4. Vec3? axisB,
  5. double maxAngle = math.pi / 2,
  6. double maxForce = 1e6,
})

Implementation

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