Get Geom local position

Questions about Marilou Open Devices Access (MODA)
Post Reply
EzraSchwartz
Posts: 3
Joined: Sun Sep 02, 2012 6:02 pm

Get Geom local position

Post by EzraSchwartz » Tue Sep 18, 2012 8:12 pm

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.

fabian
Posts: 36
Joined: Sun Jun 15, 2008 9:45 am

Re: Get Geom local position

Post by fabian » Wed Sep 19, 2012 10:45 am

humm, something like Relative=ChildMatrix*ParentMatrix.GetInverse() should work ?

positionXYZ=MODAVECTOR3( Relative[12], Relative[13], Relative[14])

Cheers
Fab

Post Reply