Exemplo n.º 1
0
 public DynamicState(DynamicState state)
 {
     this.position = state.position;
     this.angle = state.angle;
     this.velocity = state.velocity;
     this.force = state.force;
     this.angularVelocity = state.angularVelocity;
     this.torque = state.torque;
 }
Exemplo n.º 2
0
 public void saveBeforeStepState()
 {
     this.beforeStepState = new DynamicState(currentState);
 }
Exemplo n.º 3
0
 public void saveBeforeIterationState()
 {
     this.beforeIterationState = new DynamicState(currentState);
 }