Skip to content

Distance between shapes #1379

Answered by jrouwe
kozakromch asked this question in Q&A
Discussion options

You must be logged in to vote

You can use the CollideShape function (either on Shape or NarrowPhaseQuery) and pass in a CollideShapeSettings object with mMaxSeparationDistance > 0. You'll then receive hit results with a negative penetration depth, indicating how far away the closest point is.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kozakromch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants