WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Scaling and Rotating in Vizard (https://forum.worldviz.com/showthread.php?t=1159)

Vinicius Lima 07-25-2007 09:03 AM

Scaling and Rotating in Vizard
 
Hi,

I am having trouble with scaling and rotating in Vizard. Its seems like Vizard is considering the origin of the world to perfomr these two operations. I tried to rotate a group of objects and it did taking the world 0,0,0 as origin. Also, when I scaled them, their distance in relation to the origin of the world was scaled. I did not use the getchild note because they are separate objects which were added later to the world.

Thanks,

Vinicius

bbzbryce 07-25-2007 09:20 AM

Try the using viz.REL_LOCAL as the second argument of your rotation function to rotate in local coordinates rather than global coordinates.

This should work as well for the scale function. Check the docs for possible coordinate systems to use.


All times are GMT -7. The time now is 11:09 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC