WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Linking Box to Screen (https://forum.worldviz.com/showthread.php?t=2677)

jassel41 04-08-2010 11:15 AM

Linking Box to Screen
 
Hi,

I am looking into a way to link a box to the bottom right of a screen so that it seems like it is a 2-D part of the screen and wherever the user turns or goes to, the box will always remain there. Can someone help me out with the coding which needs to be done to link the box to the bottom right?

Thank you,
Jassel41

Jeff 04-08-2010 05:38 PM

You can link a box to the viewpoint and then apply an offset.
Code:

box = viz.add('box.wrl')
viewLink = viz.link(viz.MainView,box)
viewLink.preTrans([1,-0.5,4])



All times are GMT -7. The time now is 02:40 PM.

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