diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2023-11-02 11:07:43 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2023-11-15 13:13:27 -0500 |
| commit | 0f586c10920346c8190af5a71adc289483a38e47 (patch) | |
| tree | 569c5a2dd4fd5349b44536a9e1982031e6a84df8 /src/game.cpp | |
| parent | f6d30f2ddc743ae3bb2006edf1e5672efc823cb7 (diff) | |
display physics element pointers in editor
Diffstat (limited to 'src/game.cpp')
| -rw-r--r-- | src/game.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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); |
