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
when a Shape's center is inside a MeshShape, they're not reported as colliding #672
Comments
After some investigation in chat this seems to be an intentional behavior of ODE. ODE doesn't support the case where the center of mass of an object gets inside a triangle mesh. It's sort of like triangle meshes are considered "lists of triangles" instead of a solid object? The behavior is still surprising and not very friendly, to a point where this should be considered a bug. Some thoughts:
|
i think doing a combination of 1 and 2 would be a big improvement. i'm curious why ODE doesn't do 2 by default – would it mess up the normal calculation, and push shapes towards the inside of the mesh? |
JoltPhysics has a |
LÖVR uses Jolt now. MeshShapes still aren't treated as solid objects, by design. However A) there is a ConvexShape which is a solid shape that can be created from a triangle mesh and B) raycasts/shapecasts treat MeshShape triangles as being double-sided instead of single-sided. |
demonstration
mesh-capsule-collision-bug.mp4
code for that demonstration
The text was updated successfully, but these errors were encountered: