Exemplo n.º 1
0
 public override void Draw(EditorWorldRaycastResult intersection)
 {
     if (selectedObject != null)
     {
         debugRenderer.Batch(selectedObject.GetCollider());
         transHandles.Draw();
     }
 }
Exemplo n.º 2
0
        public override void Draw(EditorWorldRaycastResult intersection)
        {
            Vector3 blockCoords = TerrainEditor.SelectionBox.Center();

            Vector3 scale = TerrainEditor.SelectionBox.Size().ToVector3() + Vector3.UnitScale;

            cursorCube.Position = blockCoords;
            cursorCube.VoxelObject.MeshScale = scale + new Vector3(0.01f, 0.01f, 0.01f);
            cursorCube.RenderAsWireframe     = true;
            cursorCube.ColorOverlay          = Color.Black;

            entRenderer.Batch(cursorCube);
            transHandles.Draw();
        }