PDA

View Full Version : Linking Box to Screen


jassel41
04-08-2010, 11:15 AM
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.
box = viz.add('box.wrl')
viewLink = viz.link(viz.MainView,box)
viewLink.preTrans([1,-0.5,4])