WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-02-2009, 09:30 PM
cgibb cgibb is offline
Member
 
Join Date: Apr 2009
Posts: 14
Smile Get a user's current position from an object?

Hello,

I'm attempting to have a user click on a certain model, but in order to activate, the user must be a certain distance from the object. I've found documentation on vizmat.Distance, but how can I get the user's current position?

Thanks in advance!
Reply With Quote
  #2  
Old 06-03-2009, 11:45 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,462
You can get the user's position by getting the viewpoint position.
Code:
pos = viz.MainView.getPosition()
Reply With Quote
  #3  
Old 06-03-2009, 05:47 PM
cgibb cgibb is offline
Member
 
Join Date: Apr 2009
Posts: 14
That worked great. Thanks!
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
Randomising position of an object ptjt255 Vizard 11 10-23-2008 02:27 AM
Can you link the position of a tracker to the orientation of an object? michaelrepucci Vizard 1 09-19-2008 10:23 AM
Getting object position in screen coordinates v-Salik Vizard 1 10-19-2007 03:41 PM
picking problem... k_iwan Vizard 2 07-27-2007 07:57 PM


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


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