PDA

View Full Version : How to make an object fixed in viewpoint coordinate system?


Xianshi Xie
06-22-2009, 09:26 AM
Hi everyone,

Anybody knows how to make an object fixed in viewpoint coordinate system?

e.g. when subjects wear HMD, I want them always to see a certain object in front of them.

Thanks a lot.
Xianshi

Jeff
06-22-2009, 11:31 AM
You could link an object to the viewpoint.
ball = viz.add('ball.wrl')
link = viz.link(viz.MainView, ball)
link.preTrans([0,0,2])