← Back to team overview

yade-users team mailing list archive

Re: [Question #682290]: the correct use of collider.avoidSelfInteractionMask ?

 

Question #682290 on Yade changed:
https://answers.launchpad.net/yade/+question/682290

Jérôme Duriez proposed the following answer:
It turns out my example in #1 is incorrect because of a somewhat special treatment of 0b00 in binary comparisons (see also [*])..
Let me rephrase again: 

for 3 mask values assigned to particles (0b10 = "blue", or 0b01 =
"green", or 0b11 = "red"), and a with collider.avoidSelfInteractionMask
= 0b01:

green particles would not interact with other green particles,
red particles would not interact with other red particles,
and all other interactions would be possible.


[*]https://gitlab.com/yade-dev/trunk/issues/106#note_199825825

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.