![]() |
|
|
|
#1
|
|||
|
|||
|
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.
|
|
#2
|
|||
|
|||
|
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] |
|
#3
|
|||
|
|||
|
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?
|
|
#4
|
|||
|
|||
|
Don't worry Jeff - its sorted! Cheers for your help!
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| output data to screen | Saz | Vizard | 1 | 12-19-2008 05:59 PM |
| Flagging the Data | Elittdogg | Vizard | 5 | 04-11-2008 12:40 PM |
| Data Files | betancourtb82 | Vizard | 6 | 05-04-2006 03:43 PM |
| Obtaining Positional Data | Plasma | Vizard | 40 | 04-04-2006 12:31 PM |
| tracking using quaternarion data | jfreeman | Vizard | 2 | 06-01-2005 09:48 AM |