← Back to team overview

yade-dev team mailing list archive

Re: Adapting my code

 

> This time I'm really stuck.
> CohesiveFrictionalRelationship::go() needs current position and 
> orientation of bodies, but I can only access material, not state, in a 
> InteractionPhysicsFunctor.

You are stuffing geometric characteristics in interactionPhysics, you
are aware of that?

You can break the jail by using Body::byId(id)->state to get it (it is a
hidden call to Omega::instace()->getWorld()->bodies etc, but that is
quite fast anyway). It is that kind of hack that I would like to get rid
of, though.

v




References