View Single Post
  #2  
Old 06-25-2009, 09:51 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
If you have a feet model, you can link it to the main view and use the setPos and setEuler operators to keep the Y position on the floor and only transfer the yaw of the main view. Here is a sample that uses the ball model as the feet:
Code:
import viz
viz.go()

viz.add('tut_ground.wrl')

feet = viz.add('ball.wrl')
feet_link = viz.link(viz.MainView,feet)
feet_link.setEuler([None,0,0])
feet_link.setPos([None,0,None])
Reply With Quote