public PhysicsSimulation() { bufferPool = new BufferPool(); narrowPhaseCallbacks = new NarrowPhaseCallbacks(); poseIntegratorCallbacks = new PoseIntegratorCallbacks(new Vector3(0.0f, -9.81f, 0.0f)); InternalSimulation = Simulation.Create(bufferPool, narrowPhaseCallbacks, poseIntegratorCallbacks); }
public PhysicsSimulation() { Objects = new List <PhysicsObject>(); Buffer = new BufferPool(); NarrowPhaseCallbacks = new NarrowPhaseCallbacks { OnCollision = HandleCollision }; PoseIntegratorCallbacks = new PoseIntegratorCallbacks(Vector3.Zero); Simulation = Simulation.Create(Buffer, NarrowPhaseCallbacks, PoseIntegratorCallbacks); }