WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Animate position with viztracker (https://forum.worldviz.com/showthread.php?t=4466)

rogerlew 01-17-2013 11:44 AM

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

Jeff 01-17-2013 12:20 PM

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)


rogerlew 01-22-2013 08:53 AM

Awesome! Thanks so much.

Roger


All times are GMT -7. The time now is 10:03 AM.

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