← Back to team overview

yade-users team mailing list archive

Re: [Question #658699]: Deleting the desired interactions

 

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

    Status: Answered => Open

Xavier Thurman is still having a problem:
Thanks Jan,

I have tried this method.
I allocated two different colors for those two BPMs. I have the following codes:
O.step()
for i in O.interactions:
     if O.bodies[i.id1].shape.color != O.bodies[i.id2].shape.color:
            O.interactions.erase(i.id1,i.id2)

But it does not work!
Xavier

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