← Back to team overview

yade-users team mailing list archive

Re: [Question #683555]: How to check if there is interaction between Id1 and Id2 at current step?

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,

###
def stopIfIntLost():
    if O.interactions.has(1,2): # [1]
        O.pause()
###

cheers
Jan

[1] https://yade-
dem.org/doc/yade.wrapper.html#yade.wrapper.InteractionContainer.has

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