示例#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();
 }
示例#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();
 }