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
Unexpected physics issues - box collider missing a corner #492
Comments
I notice there are differences in the ways our
I haven't checked your manual calculation of mass and inertia tensor, that will become obsolete once the #490 is solved. Then, if I increase the collider mass to 10, the physics seem to work smoother although still not correctly. This is most likely because the inertia tensor is not correctly computed from all the shapes. We should probably merge this issue with #490. |
Thanks for the updated drawCollider code, this one works better with lighting. I've increased masses all around, and it does seem like the inertia tensor is incorrect, physical reactions to collisions are in the wrong direction (sometimes). 1634506487_Gz6GDIkwfA.mp4 |
Oops! setAngularDamping(0.01) fixed it! My sphere colliders were apparently spinning very rapidly. The only remaining problem is that my table is missing a corner. |
LÖVR uses Jolt instead of ODE now. The mass APIs are improved so this should be fixed. |
Here are the issues I'm experiencing: https://user-images.githubusercontent.com/5253130/136295955-51616d9b-be93-4e0e-b5de-3a589bba6006.mp4
Here is the source code:
tetra.zip
The text was updated successfully, but these errors were encountered: