/// <inheritdoc /> public override void Draw(GameTime gameTime) { // Set the DiffuseColor to white to draw this Robot RobotEffect.DiffuseColor = Color.White.ToVector3(); Robot.Draw(RobotWorld, Camera.View, Camera.Projection); // Set the DiffuseColor to red to draw this Robot RobotEffect.DiffuseColor = Color.Red.ToVector3(); Robot.Draw(RobotTwoWorld, Camera.View, Camera.Projection); // Draw the Chair Chair.Draw(ChairWorld, Camera.View, Camera.Projection); // Draw the Tank Tank.Draw(TankWorld, Camera.View, Camera.Projection); // Draw bounding volumes Game.Gizmos.DrawCube(BoundingVolumesExtensions.GetCenter(RobotBox), BoundingVolumesExtensions.GetExtents(RobotBox) * 2f, Color.Yellow); Game.Gizmos.DrawCube(ChairOBBWorld, TouchingChair ? Color.Orange : Color.Green); Game.Gizmos.DrawSphere(_tankSphere.Center, _tankSphere.Radius * Vector3.One, TouchingTank ? Color.Orange : Color.Purple); Game.Gizmos.DrawCylinder(RobotTwoCylinder.Transform, TouchingOtherRobot ? Color.Orange : Color.White); base.Draw(gameTime); }