Beispiel #1
0
        protected override void LoadModel()
        {
            RemoveMe   = false;
            gameEntity = mSceneMgr.CreateEntity("ogrehead.mesh");

            GameNode = mSceneMgr.CreateSceneNode();
            GameNode.AttachObject(gameEntity);
            mSceneMgr.RootSceneNode.AddChild(GameNode);

            physObj           = new PhysObj(10, "PowerUp", 0.1f, 0.5f);
            physObj.SceneNode = GameNode;
            physObj.AddForceToList(new WeightForce(physObj.InvMass));

            Physics.AddPhysObj(physObj);
        }
Beispiel #2
0
        protected override void Load()
        {
            RemoveMe = false;

            gameEntity = mSceneMgr.CreateEntity("Sphere.mesh");
            GameNode   = mSceneMgr.CreateSceneNode();
            GameNode.Scale(2, 2, 2);
            GameNode.AttachObject(gameEntity);
            mSceneMgr.RootSceneNode.AddChild(GameNode);

            physObj           = new PhysObj(10, "CannonBall", 0.1f, 0.5f);
            physObj.SceneNode = GameNode;
            physObj.AddForceToList(new WeightForce(physObj.InvMass));

            Physics.AddPhysObj(physObj);
        }
 protected override void LoadModel()
 {
     gameEntity = mSceneMgr.CreateEntity("CannonGun.mesh");
     GameNode   = mSceneMgr.CreateSceneNode();
     GameNode.AttachObject(gameEntity);
 }