WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-21-2004, 11:42 AM
valhalla valhalla is offline
Member
 
Join Date: Sep 2004
Posts: 4
moving the head about

How would one move the head about in vizard independently of the body? For instance, I want to rotate the head about using angles without interfering with the body.

Thanks!
Reply With Quote
  #2  
Old 09-21-2004, 11:50 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

Take a look at the <viewpoint>.rotate command in the documentation. There is an optional paramter called mask which specifies whether to rotate the head or body orientation. By default it is set to the head orientation, so you shouldn't need to change anything. Here's an example anyway:
Code:
view = viz.get(viz.MAIN_VIEWPOINT)
#Rotate the head orientation 90 degrees to the right
view.rotate(0,1,0,90)
#Rotate the body orientation 90 degrees to the left (which will rotate the head also, since it is attached to the body)
view.rotate(0,1,0,-90,viz.BODY_ORI)
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 09:10 AM.


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