public TestScreen2() : base("Testscreen2") { Input = (Input)Engine.Services.GetService(typeof(Input)); this.CameraManager = new CameraManager(this, CameraType.FreeCamera, new CameraSettings(new Vector3(500.0f,0.0f,-300.0f),40.0f,0.0f)); Components.Add(CameraManager); Components.Add(new Marble(this) { Position = Vector3.Zero }); Components.Add(new Marble(this) { Position = new Vector3(60.0f,0.0f,0.0f) }); }
public DrawableComponent3D(GameScreen game, string modelName) : base(game) { this.modelName = modelName; CameraManager = (CameraManager)Engine.Services.GetService(typeof(CameraManager)); // Load the model Model = Engine.Content.Load<Model>(@"Models\" + modelName); // Copy the absolute transforms AbsoluteBoneTransforms = new Matrix[Model.Bones.Count]; Model.CopyAbsoluteBoneTransformsTo(AbsoluteBoneTransforms); }
public StaticCamera(CameraManager manager, CameraSettings settings) : base(manager, settings) { }