Get Geom local position
-
- Posts: 3
- Joined: Sun Sep 02, 2012 6:02 pm
Get Geom local position
Say I have two geoms in my code, GeomParent and GeomChild, how do I get the X,Y,Z position of GeomChild as in local space to GeomParent? Thanks.
Re: Get Geom local position
humm, something like Relative=ChildMatrix*ParentMatrix.GetInverse() should work ?
positionXYZ=MODAVECTOR3( Relative[12], Relative[13], Relative[14])
Cheers
positionXYZ=MODAVECTOR3( Relative[12], Relative[13], Relative[14])
Cheers
Fab