Distance between shapes #1379
-
Hello, thanks again for such a wonderful library. It's really cool and stable. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can use the |
Beta Was this translation helpful? Give feedback.
You can use the
CollideShape
function (either onShape
orNarrowPhaseQuery
) and pass in aCollideShapeSettings
object withmMaxSeparationDistance > 0
. You'll then receive hit results with a negative penetration depth, indicating how far away the closest point is.