public override void Render(Renderer renderer)
 {
     //         var worldTransform = Matrix.Scaling(gridlet.XLength, gridlet.YLength, gridlet.Cells.Max(x => x.Height)) * gridlet.Orientation * Matrix.Translation(gridlet.X, gridlet.Y, gridlet.Z);
     //         renderer.DrawCube(worldTransform, Vector4.One, false);
      renderer.DrawOrientedBoundingBox(gridlet.OrientedBoundingBox, new Vector4(1, 0, 0, 1));
      //         RenderNeighbors(renderer);
     //         RenderNavmesh(renderer);
      //                  RenderDebugTileFlags(renderer);
 }
Esempio n. 2
0
 public override void Render(Renderer renderer)
 {
     var worldMatrix = kModelTransform * Matrix.Scaling(kCharacterSize) * Matrix.Translation(position);
      renderer.DrawCube(worldMatrix, color, false);
      renderer.DrawOrientedBoundingBox(Bounds, Color4.White);
 }
 public override void Render(Renderer renderer)
 {
     var x = toggle ? 1 : 0;
      renderer.DrawOrientedBoundingBox(Bounds, new Vector4(1 - x, 1, 1 - x, 1));
 }