View Single Post
  #2  
Old 08-19-2004, 06:46 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi Max,

The following should work:
Code:
euler = parent.get(viz.EULER)
parent.rotate(yaw,pitch,roll)
child.rotate(euler,viz.ABSOLUTE_WORLD)
You could also detach the child from the parent and apply the rotation in local coordinates by doing the following:
Code:
euler = parent.get(viz.EULER)
parent.rotate(yaw,pitch,roll)
#Detach the child from the parent and attach it to the world
child.parent(viz.WORLD)
child.rotate(euler)
I believe the parent command was introduced in version 2.16, so make sure you have a recent version of Vizard. Hope this helps.
Reply With Quote