public static Camera CreateCamera() { Malleable m = new Malleable(); Camera.Main = m.AddModule <Camera>(); return(Camera.Main); }
protected internal override void OnCreation() { _M = this.Malleable; _Phy = _M.AddOrGetModule <Physics>(); //_Phy.AttractedByGlobalGravity = false; }
public static void CreateScene() { Malleable m = CreateCamera().Malleable; m.AddModule <FreeCamController>();//m.AddModule<CharacterController>(); m.AddModule <Game>(); CreateSun(); }
public static Light CreateSun() { Malleable m = new Malleable() { Name = "Sun" }; Light.Main = m.AddModule <Light>(); return(Light.Main); }