From 10209877ddde0cc64a045e243cb18b40e677dbcb Mon Sep 17 00:00:00 2001 From: dominicentek Date: Wed, 16 Aug 2023 19:38:26 +0200 Subject: [PATCH] i hate sm64 cameraaa --- src/saturn/imgui/saturn_imgui.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/saturn/imgui/saturn_imgui.cpp b/src/saturn/imgui/saturn_imgui.cpp index af08f08d..def11ec0 100644 --- a/src/saturn/imgui/saturn_imgui.cpp +++ b/src/saturn/imgui/saturn_imgui.cpp @@ -777,6 +777,12 @@ void saturn_keyframe_camera_popout(string value_name, string id) { ImGui::SameLine(); if (ImGui::Button(buttonLabel.c_str())) { + float dist; + s16 pitch, yaw; + vec3f_copy(freezecamPos, gLakituState.pos); + vec3f_get_dist_and_angle(gLakituState.pos, gLakituState.focus, &dist, &pitch, &yaw); + freezecamYaw = yaw; + freezecamPitch = pitch; // ((id, name), (precision, value_ptr)) std::pair, std::pair> values[] = { std::make_pair(std::make_pair("pos0", "Pos X"), std::make_pair(0, &freezecamPos[0])),