Physics updates, lua bindings (#554)

* physics updates, lua bindings

* velocity setters

* fix softbody gravity

* gui things

* colliders cpu and gpu separation

* terrain prop check for missing assets

* lua internal put in function
This commit is contained in:
Turánszki János
2022-09-04 16:34:50 +02:00
committed by GitHub
parent c359395cea
commit 03fe5dcce8
29 changed files with 802 additions and 92 deletions
+7 -1
View File
@@ -10,7 +10,7 @@ void ArmatureWindow::Create(EditorComponent* _editor)
editor = _editor;
wi::gui::Window::Create(ICON_ARMATURE " Armature", wi::gui::Window::WindowControls::COLLAPSE | wi::gui::Window::WindowControls::CLOSE);
SetSize(XMFLOAT2(670, 300));
SetSize(XMFLOAT2(670, 350));
closeButton.SetTooltip("Delete ArmatureComponent");
OnClose([=](wi::gui::EventArgs args) {
@@ -32,6 +32,11 @@ void ArmatureWindow::Create(EditorComponent* _editor)
float step = hei + 2;
float wid = 220;
infoLabel.Create("");
infoLabel.SetSize(XMFLOAT2(100, 50));
infoLabel.SetText("This window will stay open even if you select other entities until it is collapsed, so you can select other bone entities.");
AddWidget(&infoLabel);
resetPoseButton.Create("Reset Pose");
resetPoseButton.SetSize(XMFLOAT2(wid, hei));
resetPoseButton.OnClick([=](wi::gui::EventArgs args) {
@@ -192,6 +197,7 @@ void ArmatureWindow::ResizeLayout()
y += padding;
};
add_fullwidth(infoLabel);
add_fullwidth(resetPoseButton);
y += jump;