hi alain
because of the same problem, i wrote a small collection of vector processing abstractions. instead of using several [translateXYZ] and [rotateXYZ] objects in one chain, i decided to only use one [translateXYZ] for the position of the geo and one [rotatateXYZ] for its orientation. for calculating the the positions and orientations, i used the abstractions, i mentioned above. it seems awkard to have to compute all that stuff yourself, since there are object, that should make life easier, but i din't find any better way to overcome that problem yet.
you can find the abstractions here: http://www.romanhaefeli.net/software/pd/vector_abs.tar.gz
On Wed, 2007-05-09 at 09:25 -0400, nosehair911@bellsouth.net wrote:
I have been looking for this answer for a while now. In Gem, is there a way to get the absolute position of a geo after its been rotated, moved, rotated again, etc...? For example:
[gemhead] | [translateXYZ 0 1 0] | [rotateXYZ 0 0 90] | [translateXYZ 1 0 0] | [circle 0.1] | [absolute position]
i think, it would also be cool to not only know the position, but also its orientation. further would it be usefull to have some angel-to-vector conversion, so that an orientation given in angles would be outputted as the three vectors rotated by these angles.
roman
___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de