Setup imgui layout for editor

This commit is contained in:
MegaMech
2025-03-07 14:52:36 -07:00
parent 8f1458902a
commit 55b905f377
12 changed files with 179 additions and 110 deletions
+5
View File
@@ -21,6 +21,7 @@ extern "C" {
#include "math_util_2.h"
#include "camera.h"
#include "courses/harbour/ship_model.h"
#include "src/racing/collision.h"
}
Gizmo::Gizmo() {
@@ -93,6 +94,10 @@ void Gizmo::Translate() {
break;
}
if (CVarGetInteger("gEditorSnapToGround", false) == true) {
_selected->Pos->y = spawn_actor_on_surface(_selected->Pos->x, 2000.0f, _selected->Pos->z);
}
Pos = FVector(
_selected->Pos->x,
_selected->Pos->y,