update method
update
Implementation
@override
void update(){
final bodyA = this.bodyA;
final bodyB = this.bodyB;
final r1 = rotationalEquation1;
final r2 = rotationalEquation2;
final r3 = rotationalEquation3;
super.update();
// These vector pairs must be orthogonal
bodyA.vectorToWorldFrame(xA, r1.axisA);
bodyB.vectorToWorldFrame(yB, r1.axisB);
bodyA.vectorToWorldFrame(yA, r2.axisA);
bodyB.vectorToWorldFrame(zB, r2.axisB);
bodyA.vectorToWorldFrame(zA, r3.axisA);
bodyB.vectorToWorldFrame(xB, r3.axisB);
}