public void Draw() { AModel.Draw(Engine.Instance.Camera3D); if (Engine.Instance.IsDebugMode) { DebugShapeRenderer.AddBoundingBox(AModel.BoundingBox, Color.White); } }
public void Draw() { Players.ForEach(p => p.Draw()); Models.ForEach(m => m.Draw(Engine.Instance.Camera3D)); Ball.Draw(); if (Engine.Instance.IsDebugMode) { DebugShapeRenderer.AddBoundingBox(Models[0].BoundingBox, Color.Red); DebugShapeRenderer.AddBoundingBox(Ball.Model.BoundingBox, Color.Yellow); DebugShapeRenderer.AddBoundingBox(LevelAreaBB, Color.Turquoise); DebugShapeRenderer.Draw(Engine.Instance.GameTime, Engine.Instance.Camera3D.ViewMatrix, Engine.Instance.Camera3D.ProjectionMatrix); AxisDrawer.Draw(Engine.Instance.Camera3D); } }