PDA

View Full Version : Animate position with viztracker


rogerlew
01-17-2013, 11:44 AM
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:
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