Inheritance: MechControllerBase
Exemplo n.º 1
0
        //------------------------------------------------------------------------------------------
        //------------------------------------------------------------------------------------------
        private void MechLibraryComplete(object sender, object args)
        {
            Node mesh = ((NodeItem)this.Engine.Library.GetResource(Handle.Create("mech", "mech"))).Root;
            mesh.BindController(this._playerController = new PlayerController());

            this.Engine.World.AddRootNode(mesh);

            this.Engine.Graphics.Camera.BindController(new CameraController(this._playerController));
            this.Engine.World.AddRootNode(this.Engine.Graphics.Camera);
        }
Exemplo n.º 2
0
        //------------------------------------------------------------------------------------------
        //------------------------------------------------------------------------------------------
        public CameraController(PlayerController player)
        {
            this._player = player;

            //this._cameraNode.Translate3();
        }