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

Add basic physics implementation for OMI_collider and OMI_physics_body #9

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

robertlong
Copy link
Member

Co-authored-by: Anthony Burchell [email protected]

Co-authored-by: Anthony Burchell <[email protected]>
@antpb
Copy link
Contributor

antpb commented Apr 29, 2022

Just leaving some screenshots for folks that may want to browse.

Here we have a complex model with a mesh named physicsBody wrapped around the pda device to be used as the trimesh collider in our threejs scene using Rapier for physics. (https://rapier.rs/)

For the mesh we just cloned the body of the device and scaled outward removing the materials. In blender you can use the eye icon to hide it while working on your object. Exporting a glb will include those hidden objects.

Screen Shot 2022-04-28 at 10 55 52 PM

Below is a video of where it is so far.

physicstrimmed.mov

I'm pushing up some camera value changes. This video shows those changes. Zoomed in a bit so we can see the meshes better.

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