View Single Post
  #4  
Old 04-21-2004, 11:41 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

Is the inertiacube linked to a viewpoint? If it is, have you tried getting the euler angles from the viewpoint instead of the inertiacube. Example:
Code:
euler = viz.get(viz.VIEW_EULER)
yaw = euler[0]
pitch = euler[1]
roll = euler[2]
This method might return some more reasonable values. The problem with euler angles is that multiple combinations of (yaw,pitch,roll) can return the same orientation. So sometimes you can get pretty strange values.
Reply With Quote