#1
|
|||
|
|||
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! |
#2
|
|||
|
|||
You can get the user's position by getting the viewpoint position.
Code:
pos = viz.MainView.getPosition() |
#3
|
|||
|
|||
That worked great. Thanks!
|
|
|
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 |