← Back to team overview

yade-users team mailing list archive

Re: [Question #702412]: O.interactions[0, 1] is unable to detect the interactions between sphere and wall, throwing an error stating "No such interaction"

 

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

    Status: Open => Answered

Bruno Chareyre proposed the following answer:
Hi,

If there are only two bodies O.forces.f(0) and O.interactions[0,1] should be the same.
Except that the first will not give an error when there is no interaction.

Alternatively, this boolean could help: 
O.interactions.has(0,1) 
Cheers
Bruno

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