From 0f586c10920346c8190af5a71adc289483a38e47 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 2 Nov 2023 11:07:43 -0400 Subject: display physics element pointers in editor --- src/game.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index df9dc2a..ea0c3bc 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -898,6 +898,9 @@ void RecordImGui_CompInstPos(bool readonly, CompInstance *component) { changed = ImGui::InputScalarN("scale", ImGuiDataType_Float, &instPos.scale, 3, nullptr, nullptr, nullptr, inputTextFlags) || changed; changed = ImGui::InputFloat("mass", &instPos.mass, 0.0, 0.0, "%.3f", inputTextFlags) || changed; + ImGui::InputScalar("Phys - Rigid Body", ImGuiDataType_U64, &component->bt.rigidBody, nullptr, nullptr, "0x%016lX", ImGuiInputTextFlags_ReadOnly); + ImGui::InputScalar("Phys - Motion State", ImGuiDataType_U64, &component->bt.motionState, nullptr, nullptr, "0x%016lX", ImGuiInputTextFlags_ReadOnly); + if (changed) { instPos.posRot.setOrigin(pos); instPos.posRot.setRotation(rot); -- cgit v1.2.3