コード例 #1
0
 public override void update(TimeSpan timeSinceLastUpdate)
 {
     if (!FoundAllBlocks)
     {
         _cubeGridPosition = new Vector3D();
         _velocityTracker.reset();
     }
     else
     {
         _cubeGridPosition = _cockpits[0].CenterOfMass;
         _velocityTracker.update(_cubeGridPosition, timeSinceLastUpdate);
     }
     base.update(timeSinceLastUpdate);
 }