Skip to content

feat: integrate rapier3d physics. Add a plinko board demo. Add debug imgui UI in games. - #41

Merged
MattSzymonski merged 17 commits into
mainfrom
physics
Jun 25, 2026
Merged

feat: integrate rapier3d physics. Add a plinko board demo. Add debug imgui UI in games.#41
MattSzymonski merged 17 commits into
mainfrom
physics

Conversation

@JDuchniewicz

@JDuchniewicz JDuchniewicz commented Jun 7, 2026

Copy link
Copy Markdown
Collaborator

Adds Rapier3d physics integration for 2D and 3D behind physics feature 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).

image

@MattSzymonski MattSzymonski left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 MattSzymonski left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
JDuchniewicz marked this pull request as ready for review June 21, 2026 12:16
@JDuchniewicz
JDuchniewicz force-pushed the physics branch 2 times, most recently from d839e03 to 35a2e1f Compare June 21, 2026 12:35
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 MattSzymonski left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Please fix the path in the Cargo.toml and we can merge

Comment thread examples/physics/Cargo.toml Outdated
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@gmail.com>
@JDuchniewicz

Copy link
Copy Markdown
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>
@JDuchniewicz JDuchniewicz changed the title feat: integrate rapier3d physics. Add a plinko board demo. feat: integrate rapier3d physics. Add a plinko board demo. Add debug imgui UI in games. Jun 24, 2026
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@gmail.com>
@MattSzymonski
MattSzymonski merged commit 96653df into main Jun 25, 2026
19 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants