Пример #1
0
        public static Camera CreateCamera()
        {
            Malleable m = new Malleable();

            Camera.Main = m.AddModule <Camera>();
            return(Camera.Main);
        }
Пример #2
0
        protected internal override void OnCreation()
        {
            _M = this.Malleable;

            _Phy = _M.AddOrGetModule <Physics>();
            //_Phy.AttractedByGlobalGravity = false;
        }
Пример #3
0
        public static void CreateScene()
        {
            Malleable m = CreateCamera().Malleable;

            m.AddModule <FreeCamController>();//m.AddModule<CharacterController>();
            m.AddModule <Game>();


            CreateSun();
        }
Пример #4
0
        public static Light CreateSun()
        {
            Malleable m = new Malleable()
            {
                Name = "Sun"
            };

            Light.Main = m.AddModule <Light>();

            return(Light.Main);
        }