Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added additional Rapier physics examples #30818

Merged
merged 19 commits into from
Apr 1, 2025
Merged

Conversation

NikLever
Copy link
Contributor

I've added 4 additional Rapier Physics examples

physics_rapier_basic.html - simple example of using rapier
physics_rapier_joints.html - example of using rapier joints
physics_rapier_character_controller.html - using a rapier character controller to use a collider under user control
physics_rapier_vehicle_controller.html - using rapier DynamicRaycasrVehicleController to create a car example

Adapted jsm/physics/RapierPhysics.js added more geometry to collider options and a debugger class that displays all colliders as outlines

@NikLever
Copy link
Contributor Author

NikLever commented Mar 28, 2025

I'm guessing the failed comparison of the screenshot physics_rapier_basic is because it uses a randomised colour for the dropping bodies. I've added an exception.

@Mugen87
Copy link
Collaborator

Mugen87 commented Mar 29, 2025

Do you mind updating the basic visuals of the demos so they match physics_ammo_break?

Specifically, use the background and floor setup from the ammo demo. That should make the scenes brighter and friendlier.

@Mugen87
Copy link
Collaborator

Mugen87 commented Mar 29, 2025

Please add the new examples to the tags.json file so they are marked as external:

"physics_rapier_instancing": [ "external" ],

@Mugen87 Mugen87 added this to the r176 milestone Apr 1, 2025
@Mugen87 Mugen87 merged commit 7f74cfa into mrdoob:dev Apr 1, 2025
11 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.

3 participants