Beispiel #1
0
        public CollisionDetectionEngine(
            CollisionEngineParameters collisionEngineParameters,
            double collisionDistance)
        {
            this.collisionEngineParameters = collisionEngineParameters;

            narrowPhase = new NarrowPhase(collisionEngineParameters);
            SetBroadPhaseEngine();

            CollisionDistance = collisionDistance;
        }
Beispiel #2
0
        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);
        }