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