示例#1
0
 public void Dispose()
 {
     HavokDllBridge.dispose();
     objectIDs.Clear();
     reverseIDs.Clear();
     scaleTable.Clear();
 }
示例#2
0
        public void RestartsSimulation()
        {
            HavokDllBridge.dispose();

            InitializePhysics();

            List <IPhysicsObject> physObjs = new List <IPhysicsObject>(objectIDs.Keys);

            objectIDs.Clear();
            reverseIDs.Clear();
            scaleTable.Clear();

            foreach (IPhysicsObject physObj in physObjs)
            {
                AddPhysicsObject(physObj);
            }
        }