WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   How to make an object fixed in viewpoint coordinate system? (https://forum.worldviz.com/showthread.php?t=2106)

Xianshi Xie 06-22-2009 09:26 AM

How to make an object fixed in viewpoint coordinate system?
 
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.
Code:

ball = viz.add('ball.wrl')
link = viz.link(viz.MainView, ball)
link.preTrans([0,0,2])



All times are GMT -7. The time now is 08:00 PM.

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