← Back to team overview

yade-dev team mailing list archive

Re: [yade dev] skip non dynamic bodies in a loop over interactions

 

> if(  !(Body::byId(I->getId1())->isDynamic) ||
>  > !(Body::byId(I->getId2())->isDynamic)  ) continue;
isDynamic is a function, you must
Body::byId(I->getId1(),scene)->isDynamic() etc.

(if you pass scene pointer to Body::byId, it is faster)

v




References