WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Object rotating around world axis, not own axis (https://forum.worldviz.com/showthread.php?t=1001)

tacbob 02-15-2007 01:07 AM

Object rotating around world axis, not own axis
 
How can I get an object to rotate around its own axis and not around the world axis??

Thanks

farshizzo 02-15-2007 09:12 AM

All the rotate commands accept an optional parameter that specifies how to apply the rotation. For example, to here is how to apply a 90 degree rotation around the local y-axis:
Code:

object.rotate(0,1,0,90,viz.RELATIVE_LOCAL)


All times are GMT -7. The time now is 02:41 AM.

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