Skip to content

Distance between shapes #1379

Answered by jrouwe
kozakromch asked this question in Q&A
Dec 5, 2024 · 1 comments · 4 replies
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 4 replies

Comment options

You must be logged in to vote
4 replies
@kozakromch
Comment options

@jrouwe
Comment options

@jrouwe
Comment options

@jrouwe
Comment options

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