From 23ba19a4a09459044aafae708ca5ee2303b0496f Mon Sep 17 00:00:00 2001 From: OusmBlueNinja <89956790+OusmBlueNinja@users.noreply.github.com> Date: Tue, 4 Feb 2025 11:16:50 -0600 Subject: [PATCH] Im Back! --- assets/scripts/camera.lua | 5 ++++- imgui.ini | 24 ++++++++++++------------ scenes/Default.scene | 10 +++++----- 3 files changed, 21 insertions(+), 18 deletions(-) diff --git a/assets/scripts/camera.lua b/assets/scripts/camera.lua index fbdc1b9..362d0d8 100644 --- a/assets/scripts/camera.lua +++ b/assets/scripts/camera.lua @@ -3,6 +3,7 @@ local KeyCode = require("keycode") + local transform = nil local currentRotation = 0 -- Current Y-axis rotation in degrees @@ -27,7 +28,7 @@ function OnInit() local rotation = transform:GetRotation() currentRotation = rotation.y - Engine.Expose("Position X", rotation.x) + Engine.Expose("Position X", rotation.x) Engine.Expose("Position Z", rotation.z) Engine.Expose("Rotation Y", currentRotation) Engine.Log("Init Done", {0,1,0,1}) @@ -115,4 +116,6 @@ function OnUpdate(deltaTime) Engine.Expose("Position X", position.x) Engine.Expose("Position Z", rotation.z) Engine.Expose("Rotation Y", currentRotation) + + end diff --git a/imgui.ini b/imgui.ini index 1dbd6bd..693a041 100644 --- a/imgui.ini +++ b/imgui.ini @@ -1,6 +1,6 @@ [Window][DockSpace] Pos=0,0 -Size=1280,720 +Size=1920,1177 Collapsed=0 [Window][Debug##Default] @@ -80,8 +80,8 @@ Collapsed=0 DockId=0x0000001F,0 [Window][Performance##performance] -Pos=8,360 -Size=335,352 +Pos=8,581 +Size=335,588 Collapsed=0 DockId=0x0000001C,0 @@ -105,7 +105,7 @@ DockId=0x0000000F,0 [Window][Scene Window##SceneWindow] Pos=8,28 -Size=335,330 +Size=335,551 Collapsed=0 DockId=0x0000001B,0 @@ -134,26 +134,26 @@ Collapsed=0 DockId=0x0000001E,0 [Window][ Logger##logger] -Pos=345,282 -Size=265,430 +Pos=345,739 +Size=586,430 Collapsed=0 DockId=0x00000021,0 [Window][ Editor##EditorWindow] Pos=345,28 -Size=530,252 +Size=1170,709 Collapsed=0 DockId=0x0000001F,0 [Window][ Inspector##InspectorWindow] -Pos=877,28 -Size=395,684 +Pos=1517,28 +Size=395,1141 Collapsed=0 DockId=0x00000022,0 [Window][ Profiler] -Pos=612,282 -Size=263,430 +Pos=933,739 +Size=582,430 Collapsed=0 DockId=0x00000023,0 @@ -181,7 +181,7 @@ Column 0 Width=30 Column 1 Weight=1.0000 [Docking][Data] -DockSpace ID=0x14621557 Window=0x3DA2F1DE Pos=250,293 Size=1264,684 Split=X Selected=0xF7365A5A +DockSpace ID=0x14621557 Window=0x3DA2F1DE Pos=8,51 Size=1904,1141 Split=X Selected=0xF7365A5A DockNode ID=0x00000020 Parent=0x14621557 SizeRef=884,684 Split=X DockNode ID=0x00000013 Parent=0x00000020 SizeRef=335,1142 Split=Y Selected=0x818D04BB DockNode ID=0x0000001B Parent=0x00000013 SizeRef=264,551 HiddenTabBar=1 Selected=0x1D5D92B6 diff --git a/scenes/Default.scene b/scenes/Default.scene index 4bcd94e..c0414e6 100644 --- a/scenes/Default.scene +++ b/scenes/Default.scene @@ -166,8 +166,8 @@ Entities: ScriptComponent: ScriptPath: assets/scripts/camera.lua Transform: - Position: [881.214233, 200, -162.832016] - Rotation: [0, 170.205078, 0] + Position: [155.264847, 200, 95.891983] + Rotation: [0, 142.408707, 0] Scale: [1, 1, 1] CameraComponent: IsPerspective: true @@ -187,6 +187,6 @@ Entities: indexCount: 36 textures: ~ Transform: - Position: [-3.43110847, 248.891235, 0] - Rotation: [0, -0, 0] - Scale: [25, 25, 25] \ No newline at end of file + Position: [-18.434, -9.68400002, -64.5] + Rotation: [0, 0, -5.04242373] + Scale: [4.50000477, 4.50000477, 4.5] \ No newline at end of file