WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-22-2009, 09:26 AM
Xianshi Xie Xianshi Xie is offline
Member
 
Join Date: Jun 2009
Posts: 6
Smile 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
Reply With Quote
  #2  
Old 06-22-2009, 11:31 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,450
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])
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
retrieve Object names Geoffrey Vizard 11 12-11-2009 04:26 AM
A point in avatar's coordinate system omidbrb Vizard 2 05-15-2009 05:39 AM
Different coordinate system for plug-in and vizard API? reedev Plug-in development 4 12-10-2008 08:43 AM
Avatar w/ hat cannot look at viewpoint TrashcanPatrol Vizard 5 08-19-2008 08:26 AM


All times are GMT -7. The time now is 02:11 AM.


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