Skip to content

Is it possible to filter the collision between two soft body's specific tetrahedrons? #234

Answered by sschirm
yafei-ou asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @yafei-ou ,
Yes, the method you point out is the way to go. If you don't want to have tet, a, b, c of softbody A to not collide with tet d, e in softbody B, then you need to call all combinations.
A->addSoftBodyFilter(B, d, a)
A->addSoftBodyFilter(B, d, c)
A->addSoftBodyFilter(B, d, c)
A->addSoftBodyFilter(B, e, a)
A->addSoftBodyFilter(B, e, c)
A->addSoftBodyFilter(B, e, c)
There is also a batched version: addSoftBodyFilters
Maybe we'll support some grouping feature in the future, but no solid plan yet.
You can also use PX_MAX_TETID for the tetId to say that one tet should be filtered against all other that's of the other softbody (which is usually good enough...)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yafei-ou
Comment options

Answer selected by yafei-ou
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