#1
|
|||
|
|||
teleport users location
Hi there,
Is there a way to teleport your location to a different part of your scene at the touch of a button: For example… Code:
theview = viz.get(viz.MAIN_VIEWPOINT) theview.translate(0,5,0) POSITION = 0 def mytimer(num): global POSITION if POSITION == 1: theview.translate(1,0,1) if viz.iskeydown('e'): POSITION = 1 Any help would be much appreciated |
#2
|
|||
|
|||
What you have should work. If you have collision enabled, then you will need to temporarily disable collisions when teleporting the viewpoint.
Code:
viz.collision(0) viz.MainView.translate(1,0,1) viz.collision(1) |
#3
|
|||
|
|||
thankyou!! it works perfect now
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Gps input for viewpoint location? | realvision | Vizard | 3 | 03-19-2008 12:37 PM |
For users with a floating license: Adding Vizard License Server as a Service | mspusch | Vizard | 0 | 03-03-2006 11:36 AM |
dynamic access of avatar location | valhalla | Vizard | 1 | 09-13-2004 08:28 PM |