public void Dispose() { HavokDllBridge.dispose(); objectIDs.Clear(); reverseIDs.Clear(); scaleTable.Clear(); }
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); } }