Skip to content

Example to set margin for collision detection #1697

Answered by jmirabel
Jiayuan-Gu asked this question in Q&A
Discussion options

You must be logged in to vote

I haven't checked the code but it looks straightforward to me:
It is a matrix whose row and column index correspond to geometry index and whose values correspond to the security margin to be used for the corresponding pair of geometries.
Since the tuples (i,j) and (j,i) represent the same pair of geometries, the matrix should be symmetrical. To avoid having to set both values, you can set only the upper or lower part of the matrix and set the boolean argument accordingly.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Jiayuan-Gu
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