~mulder-nebulon/openracing/cleaned

« back to all changes in this revision

Viewing changes to src/core/RaceManager.cs

  • Committer: Nagy Imre
  • Date: 2009-04-04 06:54:16 UTC
  • Revision ID: mulder@codenode-20090404065416-ybb5akhb6im7b0x6
Almost ok, but in Z-180, it rotates backwards

Show diffs side-by-side

added added

removed removed

Lines of Context:
180
180
                    {
181
181
                        tCarElt car = mSituation.Cars[i];
182
182
                        car.Speed.X = 0.0f;     // was SpeedInit
183
 
                        car.Position.X = 225.315567f;
184
 
                        car.Position.Y = 371.268f;
185
 
                        car.Position.Z = 1.6000f;
 
183
                        car.Position.X = 0.0f;
 
184
                        car.Position.Y = 0.0f;
 
185
                        car.Position.Z = 110.6000f;
186
186
                        car.Position.Yaw = 0;
187
187
                    }     
188
188
            }
212
212
            }
213
213
        }
214
214
        
215
 
                public void Shutdown() {
216
 
            for (int i=0; i<mRobots.Length; ++i)
217
 
                mRobots[i].Shutdown();
218
 
            mSimulator.Shutdown();
219
 
            mSimulator = null;
220
 
            mTrackModule.Shutdown(); // TODO Shutdown Track using TrackManager module
221
 
            mTrackModule = null;
222
 
            // mGfParm.Release(); // (segfault)
223
 
        }
 
215
        public void Shutdown() 
 
216
            {
 
217
                for (int i=0; i<mRobots.Length; ++i) mRobots[i].Shutdown();
 
218
                mSimulator.Shutdown();
 
219
                mSimulator = null;
 
220
                mTrackModule.Shutdown(); // TODO Shutdown Track using TrackManager module
 
221
                mTrackModule = null;
 
222
                // mGfParm.Release(); // (segfault)
 
223
            }
224
224
    }
225
225
}