← Back to team overview

yade-dev team mailing list archive

Re: Overlapping volume

 

>
> // distance between two contact spheres
> d=((Body::byId(id1,scene)->state->pos) -
> (Body::byId(id2,scene)->state->pos) +
> (scene->cell->hSize*I->cellDist.cast<Real>())).norm();
>
Bracket problem I think.
It should read:
d=pos1 - (pos2+shift2)
but here I see:
d=pos1 - pos2 + shift2
 
B.



References