Better Physics a little, New UI! And not only that, More simple scripting, Yey!!!!

This commit is contained in:
Anemunt
2026-01-01 00:35:51 -05:00
parent ac1fab021c
commit b5bbbc2937
18 changed files with 2528 additions and 373 deletions

View File

@@ -36,15 +36,10 @@ extern "C" void Script_OnInspector(ScriptContext& ctx) {
ImGui::TextUnformatted("RigidbodyTest");
ImGui::Separator();
bool changed = false;
changed |= ImGui::Checkbox("Launch on Begin", &autoLaunch);
changed |= ImGui::Checkbox("Show Velocity Readback", &showVelocity);
changed |= ImGui::DragFloat3("Launch Velocity", &launchVelocity.x, 0.25f, -50.0f, 50.0f);
changed |= ImGui::DragFloat3("Teleport Offset", &teleportOffset.x, 0.1f, -10.0f, 10.0f);
if (changed) {
ctx.SaveAutoSettings();
}
ImGui::Checkbox("Launch on Begin", &autoLaunch);
ImGui::Checkbox("Show Velocity Readback", &showVelocity);
ImGui::DragFloat3("Launch Velocity", &launchVelocity.x, 0.25f, -50.0f, 50.0f);
ImGui::DragFloat3("Teleport Offset", &teleportOffset.x, 0.1f, -10.0f, 10.0f);
if (ImGui::Button("Launch Now")) {
Launch(ctx);
@@ -76,4 +71,4 @@ void Begin(ScriptContext& ctx, float /*deltaTime*/) {
if (autoLaunch) {
Launch(ctx);
}
}
}