public void SetUp()
        {
            _context = new PhysicsContext();
            _context.InitializeWorld();

            _shape = new BoxShape(2);
            RigidBody staticSphere  = _context.AddStaticBody(_shape, Matrix.Translation(0, 0, 0));
            RigidBody dynamicSphere = _context.AddBody(_shape, Matrix.Translation(0, 1, 0), 1);
        }
        public void SetUp()
        {
            _context = new PhysicsContext();
            _context.InitializeWorld();

            _shape = new BoxShape(2);
            RigidBody staticSphere  = _context.AddStaticBody(_shape, Matrix.Translation(0, 0, 0));
            RigidBody dynamicSphere = _context.AddBody(_shape, Matrix.Translation(0, 1, 0), 1);

            _callback = new CustomOverlapFilterCallback(staticSphere, dynamicSphere);
        }
        public void SetUp()
        {
            _context = new PhysicsContext();
            _context.InitializeWorld();

            _ghostPairCallback = new GhostPairCallback();
            _context.Broadphase.OverlappingPairCache.SetInternalGhostPairCallback(_ghostPairCallback);

            _shape = new BoxShape(2);
            RigidBody staticBox  = _context.AddStaticBody(_shape, Matrix.Translation(0, 0, 0));
            RigidBody dynamicBox = _context.AddBody(_shape, Matrix.Translation(0, 1, 0), 1);

            _ghostObject = new PairCachingGhostObject
            {
                CollisionShape = _shape,
                WorldTransform = Matrix.Translation(2, 2, 0)
            };
            _context.World.AddCollisionObject(_ghostObject);
        }