feat: integrate rapier3d physics. Add a plinko board demo. Add debug imgui UI in games. - #41
Merged
Conversation
MattSzymonski
left a comment
Collaborator
There was a problem hiding this comment.
Add to root .gitignore:
*.cooked_mesh
*.cooked_tex
DamagedHelmet.glb
MetalRoughSpheres.glb
studio_small_08.hdr
to not add cooked assets in res folder of examples
MattSzymonski
left a comment
Collaborator
There was a problem hiding this comment.
Physics related ECS components contain a lot of code which is commented out. Please clean them up
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@gmail.com>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@gmail.com>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@gmail.com>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@gmail.com>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@gmail.com>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@gmail.com>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@gmail.com>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@gmail.com>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@gmail.com>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@gmail.com>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@gmail.com>
JDuchniewicz
marked this pull request as ready for review
June 21, 2026 12:16
JDuchniewicz
force-pushed
the
physics
branch
2 times, most recently
from
June 21, 2026 12:35
d839e03 to
35a2e1f
Compare
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@gmail.com>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@gmail.com>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@gmail.com>
MattSzymonski
requested changes
Jun 21, 2026
MattSzymonski
left a comment
Collaborator
There was a problem hiding this comment.
Looks great! Please fix the path in the Cargo.toml and we can merge
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@gmail.com>
Collaborator
Author
|
@MattSzymonski hold on with merging just yet - I want to add a few controls and maybe add nice debug UI for tweaking various physical params. |
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Rapier3d physics integration for 2D and 3D behind
physicsfeature flag.Adds Rigidbody/Collider components.
Adds a plinko board demo simulating 3D with one axis locked.
Adds imgui debug UI with simple buttons and sliders.
CAVEAT: right now despawning entities with physic components attached won't clean them up properly. This will be implemented after the big ECS refactor is in place (no point doing work which will get overwritten).