Beispiel #1
0
        public override void Initialize()
        {
            base.Initialize();

            geom = new BEPUphysics.Box(transform.Position, box.Width, box.Height, box.Depth);
            geom.makePhysical(1);

            geom.isAffectedByGravity   = !isStatic;
            geom.isPhysicallySimulated = !isStatic;

            GameContainer.Space.add(geom);
        }
Beispiel #2
0
        public override void Initialize()
        {
            base.Initialize();

            geom = new BEPUphysics.Box(transform.Position, box.Width, box.Height, box.Depth);
            geom.makePhysical(1);

            geom.isAffectedByGravity = !isStatic;
            geom.isPhysicallySimulated = !isStatic;

            GameContainer.Space.add(geom);
        }