I'm not exactly sure what you are needing. getPosition() will return the exact (x,y,z) coordinates of the objects local origin. Is the object underneath a hierarchy of other objects? If so, then you will need to call getPosition(viz.ABS_GLOBAL) to get the true world coordinates of the object.
|