← Back to team overview

yade-users team mailing list archive

Re: [Question #403534]: How to make certain particles "invisibles" to others?

 

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

    Status: Open => Answered

Klaus Thoeni proposed the following answer:
Not sure if there is a good example. Long story short it is a bit wise
comparison. Here a short example assuming three bodies:

O.bodies[0].mask=1 # 00000001 -> corresponds to 1 in the binary system
O.bodies[1].mask=2 # 00000010 -> corresponds to 2 in the binary system
O.bodies[2].mask=3 # 00000011 -> corresponds to 3 in the binary system

In this example, O.bodies[0] and O.bodies[1] would not interact whereas
O.bodies[2] would interact with both.

HTH
Klaus

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