added swing-twist constraint and constraint debug size control

This commit is contained in:
Turánszki János
2025-04-07 08:50:14 +02:00
parent e57cc107a6
commit 1b3f322f83
11 changed files with 177 additions and 23 deletions
+1
View File
@@ -33,6 +33,7 @@ void GeneralWindow::Create(EditorComponent* _editor)
physicsDebugCheckBox.OnClick([=](wi::gui::EventArgs args) {
wi::physics::SetDebugDrawEnabled(args.bValue);
editor->componentsWnd.rigidWnd.physicsDebugCheckBox.SetCheck(args.bValue);
editor->componentsWnd.constraintWnd.physicsDebugCheckBox.SetCheck(args.bValue);
});
physicsDebugCheckBox.SetCheck(wi::physics::IsDebugDrawEnabled());
AddWidget(&physicsDebugCheckBox);