![]() |
|
#1
|
|||
|
|||
|
Animate position with viztracker
Hello,
I have a HMD/PPT/Inertiacube setup. I would like to slowly move users from one location to another. I know I can move them instantaneously with viztracker.get("movable").setPosition(pos) but would like something similar to vizact.moveTo(pos, time=animation_time) that works with viztracker. Is there a simple means of accomplishing this. Thank you, Roger |
|
#2
|
|||
|
|||
|
Yes, you can apply the move action directly to the movable node:
Code:
move = vizact.moveTo([0,0,20],speed=5)
movable = viztracker.get("movable")
vizact.onkeydown(' ',movable.addAction,move)
|
|
#3
|
|||
|
|||
|
Awesome! Thanks so much.
Roger |
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Getting Position | Lynnifer | Vizard | 1 | 07-16-2012 10:49 AM |
| Dynamic Position and Radius of Sphere | hotshotiguana | Vizard | 1 | 03-23-2011 01:53 PM |
| Translate view from sensor position to lens position? | Kaminski | Vizard | 4 | 03-09-2011 11:36 AM |
| writing joystick position to a data file | Saz | Vizard | 3 | 12-17-2008 06:18 AM |