mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-08-21 14:55:20 -04:00
Basic Scene Explorer Works
This commit is contained in:
@@ -50,8 +50,6 @@ void Gizmo::Tick() {
|
||||
|
||||
// Makes the gizmo visible
|
||||
void Gizmo::Enable(GameObject* object, Ray ray) {
|
||||
static float length = 180.0f; // Default value
|
||||
|
||||
_selected = object;
|
||||
_ray = ray.Direction;
|
||||
Pos = FVector(
|
||||
@@ -61,6 +59,15 @@ void Gizmo::Enable(GameObject* object, Ray ray) {
|
||||
);
|
||||
}
|
||||
|
||||
void Gizmo::EnableNoCursor(GameObject* object) {
|
||||
_selected = object;
|
||||
Pos = FVector(
|
||||
object->Pos->x,
|
||||
object->Pos->y,
|
||||
object->Pos->z
|
||||
);
|
||||
}
|
||||
|
||||
void Gizmo::Translate() {
|
||||
static float length = 180.0f; // Default value
|
||||
|
||||
@@ -70,7 +77,6 @@ void Gizmo::Translate() {
|
||||
}
|
||||
|
||||
if (Enabled) {
|
||||
//FVector ray = ScreenRayTrace();
|
||||
length = sqrt(
|
||||
pow(_selected->Pos->x - cameras[0].pos[0], 2) +
|
||||
pow(_selected->Pos->y - cameras[0].pos[1], 2) +
|
||||
|
||||
Reference in New Issue
Block a user