/// <summary> /// This is called when the game should draw itself. /// </summary> /// <param name="gameTime">Provides a snapshot of timing values.</param> protected override void Draw(GameTime gameTime) { base.Draw(gameTime); GraphicsDevice.Clear(Color.CornflowerBlue); // Debug draw _debugEffect.LightingEnabled = false; _debugEffect.VertexColorEnabled = true; _debugEffect.CurrentTechnique.Passes[0].Apply(); DebugDrawer.DrawDebugWorld(World); // Draw shapes foreach (RigidBody body in World.CollisionObjectArray) { DrawModel(body.CollisionShape, body.WorldTransform); } }