title: How to visualize PhysicsWorld / CollisionShape with debug renderer?
body: <p>My test scene for Urho3D/Urhosharp contains two boxes (see screenshot).
  For both, the red and the green box I added a <code>RigidBody</code> and a <code>CollisionShape</code>.</p>
  
  <p><a href="https://i.stack.imgur.com/h34c3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/h34c3.png" alt="enter image description here"></a></p>
  
  <p>The shape for the red box is a sphere and for the blue one a box. I've enabled debug visualisation by adding:</p>
  
  <pre><code>app.Engine.SubscribeToPostRenderUpdate(args =&gt; {
      app.Renderer.DrawDebugGeometry(false);
  });
  </code></pre>
  
  <p>However, this does not render the collision shapes but only the wireframe of the objects (green lines).</p>
  
  <p>Here's the code for the blue node:</p>
  
  <pre><code>var floorNode = app.RootNode.CreateChild("Floor");
      floorNode.Position = Vector3.Zero;
      floorNode.Scale = new Vector3(10, 1, 10);
      var floorComp = floorNode.CreateComponent&lt;Box&gt;();
      floorComp.SetMaterial(Material.FromColor(new Color(0, 0, 1, 0.5f)));
  
  var rigidBody = floorNode.CreateComponent&lt;RigidBody&gt;();
      rigidBody.Mass = 0;
      var collNode = floorNode.CreateComponent&lt;CollisionShape&gt;();
      collNode.SetBox(Vector3.One, Vector3.Zero, Quaternion.Identity);
  </code></pre>
  
  <p>And for the red one:</p>
  
  <pre><code>var boxNode = app.RootNode.CreateChild("Box");
      boxNode.SetScale(2f);
      var boxComp = boxNode.CreateComponent&lt;Box&gt;();
      boxComp.Color = Color.Red;
      boxComp.SetMaterial(Material.FromColor(Color.Red));
  
  var rigidBody = boxNode.CreateComponent&lt;RigidBody&gt;();
      rigidBody.Mass = 0f;
      var collNode = boxNode.CreateComponent&lt;CollisionShape&gt;();
  
      collNode.SetBox(Vector3.One, Vector3.Zero, Quaternion.Identity);
      collNode.SetSphere(3f, Vector3.Zero, Quaternion.Identity);
  </code></pre>
  
  <p>The collision works but I'd love to see the physics world because it makes it easier to experiment.</p>