← Back to team overview

yade-users team mailing list archive

ids bodies contact

 

Hi all,

quick question on the ids of two bodies in contact. I took an example where
a box and a sphere get in contact. Then I simply switched the id of the two
and I checked the ids of the interaction. To put it better I obtained:

1) case

box -> id=0
sphere -> id=1

Interaction:
id1=0 (box)
id2=1 (sphere)

2) case (I switch ids, alias I change the sequence in which I append the two
bodies)

sphere -> id=0
box -> id=1

Interaction:
id1=1 (box) ---> why it is not id=0 as in the first case?
id2=0 (sphere)

My question is: how are assigned the ids of the contact once the interaction
is created?
Just to know..

cheers, Chiara

Follow ups