Question #661262 on Yade changed: https://answers.launchpad.net/yade/+question/661262
Jan Stránský proposed the following answer: > I want to record the rotation angle of one or more polyhedra around x axis. thanks, it makes it much more clear :-) o = b.state.ori v = o.toRotationVector() ax = v.dot(Vector3.UnitX) according to your needs, you can record it incrementally deltaV = ori.toRotationVector() - oriPrev.toRotationVector() # oriPrev is stored externally deltaAx = deltaV.dot(Vector3.UnitX) not tested for "large" angles, e.g. if it rotates around x axis 2 rounds.. cheers Jan -- You received this question notification because your team yade-users is an answer contact for Yade. _______________________________________________ Mailing list: https://launchpad.net/~yade-users Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp

