mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-08-04 09:28:55 -04:00
Setup imgui layout for editor
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user