/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); // TODO: use this.Content to load your game content here //CameraObject.CreateDefaultCamera(graphics); spriteFont = Content.Load <SpriteFont>("Arial"); rubberDucky = new LivingGameObject(Content.Load <Model>("Models\\ducky_highres"), 2000.0f); rubberDucky.Mass = 0.001f; //rubberDucky.DirectionOffset = Vector3.Backward; ship = new LivingGameObject(Content.Load <Model>("ship"), 1f); bsd = new LivingGameObject(Content.Load <Model>("bsd"), 10f); terrain = new GameObject(Content.Load <Model>("Terrian\\Ground")); //camera.Target = ship; camera.AddObject(rubberDucky); camera.AddObject(ship); camera.AddObject(bsd); camera.AddObject(terrain); camera.NextTarget(); //BoundingSphere duckBounds = rubberDucky.Bounds; //while (true) //{ // ContainmentType boundResult = ContainmentType.Contains; // terrain.Bounds.Contains(ref duckBounds, out boundResult); // if (boundResult == ContainmentType.Contains) // break; // rubberDucky.Position.Y += 1.0f; //} }