Example #1
0
 public virtual void insertShipOnMap(RacerType newRacerType)
 {
     racerType   = newRacerType;
     shipPhysics = new ShipPhysics(this);
     shipDrawing.setPositionFunctions(new Func <Matrix>(() => shipPhysics.DrawOrientationMatrix), new Func <Vector3>(() => shipPhysics.ShipPosition));
     setupRacingControls();
 }
Example #2
0
 public virtual void insertShipOnMap(RacerType newRacerType)
 {
     racerType = newRacerType;
     shipPhysics = new ShipPhysics(this);
     shipDrawing.setPositionFunctions(new Func<Matrix>(() => shipPhysics.DrawOrientationMatrix), new Func<Vector3>(() => shipPhysics.ShipPosition));
     setupRacingControls();
 }