← Back to team overview

yade-users team mailing list archive

Re: clumps


> In order to realize the accurate rigid body rotation integrator I need
> the previous angular moment. So, can I add prevAngMom to the State class
> or would be better if I add it to a RigidBodyState class which derived
> from the State?

I would prefer to add this a new state. But it shouldn't be
"RigidBodyState" (current State is what would be called rigid-body
state, no?), but something expressing that it remembers last angular
momentum. For now, you could remember it in a vector<Vector3> inside the
integrator, though it is an ugly hack.

Others might have better ideas, though.

Follow ups