WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-15-2007, 01:07 AM
tacbob tacbob is offline
Member
 
Join Date: Feb 2006
Posts: 9
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
Reply With Quote
  #2  
Old 02-15-2007, 09:12 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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)
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:40 AM.


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