WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-17-2013, 11:44 AM
rogerlew rogerlew is offline
Member
 
Join Date: Sep 2012
Posts: 3
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
Reply With Quote
  #2  
Old 01-17-2013, 12:20 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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)
Reply With Quote
  #3  
Old 01-22-2013, 08:53 AM
rogerlew rogerlew is offline
Member
 
Join Date: Sep 2012
Posts: 3
Awesome! Thanks so much.

Roger
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Position Lynnifer Vizard 1 07-16-2012 09:49 AM
Dynamic Position and Radius of Sphere hotshotiguana Vizard 1 03-23-2011 12:53 PM
Translate view from sensor position to lens position? Kaminski Vizard 4 03-09-2011 10:36 AM
writing joystick position to a data file Saz Vizard 3 12-17-2008 05:18 AM


All times are GMT -7. The time now is 06:00 AM.


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