public CollisionDetectionEngine( CollisionEngineParameters collisionEngineParameters, double collisionDistance) { this.collisionEngineParameters = collisionEngineParameters; narrowPhase = new NarrowPhase(collisionEngineParameters); SetBroadPhaseEngine(); CollisionDistance = collisionDistance; }
public ConservativeAdvancement() { var parameters = new CollisionEngineParameters(); var physicsEngineParams = new PhysicsEngineParameters(); parameters.SetManifoldPoints(0); collisionDetectionEngine = new NarrowPhase(parameters); broadPhaseEngine = new AABBBroadPhase(parameters); integratePosition = new IntegratePosition(physicsEngineParams); }