Replies: 1 comment
-
Reading the Bullet manual (https://raw.githubusercontent.com/bulletphysics/bullet3/master/docs/Bullet_User_Manual.pdf) it seems that the margin trick doesn't work for all shapes, such as boxes, because Bullet compensates for the gap it would create normally (see page 15 "Collision Margin"). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This video shows that the margin property can be abused to create rounded shapes in Bullet: https://www.youtube.com/watch?v=BGAwRKPlpCw&t=367s
Since Rapier3D doesn't have a margin property for its shapes but it does have rounded shapes, we could use this to indirectly implement rounded shapes.
The only caveats are:
0.04
, which means every shape is rounded by default. This can have unintended side effects0.001
, so the threshold should be ~0.0010001
instead of just0
.Beta Was this translation helpful? Give feedback.
All reactions