WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1  
Old 01-09-2009, 09:17 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
That code should give you 0 km/hour if you are not moving along the y-axis which is the height. I think you may be wanting to get the speed along the z-axis. If that's the case then just dind the difference in z coordinates rather than the y coordinates.
Reply With Quote
  #2  
Old 01-09-2009, 09:29 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
just to clarify, in the joystick navigation code, when you move the joystick on its y-axis that moves Vizard's viewpoint forward or backward which is Vizard's z axis. So to get the current z position just do

Code:
current_posZ = current_pos[2]
Reply With Quote
  #3  
Old 01-12-2009, 02:20 AM
Saz Saz is offline
Member
 
Join Date: Nov 2008
Posts: 36
you're a star Jeff - thank you!! Is there any reason that I'm getting a continual drift of the viewpoint to the right though, even if I'm not using the joystick?
Reply With Quote
  #4  
Old 01-12-2009, 04:23 AM
Saz Saz is offline
Member
 
Join Date: Nov 2008
Posts: 36
Don't worry Jeff - its sorted! Cheers for your help!
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
output data to screen Saz Vizard 1 12-19-2008 04:59 PM
Flagging the Data Elittdogg Vizard 5 04-11-2008 11:40 AM
Data Files betancourtb82 Vizard 6 05-04-2006 02:43 PM
Obtaining Positional Data Plasma Vizard 40 04-04-2006 11:31 AM
tracking using quaternarion data jfreeman Vizard 2 06-01-2005 08:48 AM


All times are GMT -7. The time now is 02:18 AM.


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