コード例 #1
0
ファイル: Body.cs プロジェクト: concretemixer/aic
 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;
 }
コード例 #2
0
ファイル: Body.cs プロジェクト: concretemixer/aic
 public void saveBeforeStepState()
 {
     this.beforeStepState = new DynamicState(currentState);
 }
コード例 #3
0
ファイル: Body.cs プロジェクト: concretemixer/aic
 public void saveBeforeIterationState()
 {
     this.beforeIterationState = new DynamicState(currentState);
 }