Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
sensors with three degrees of freedom
05-29-2007, 09:30 AM,
#1
sensors with three degrees of freedom
Hi, i'm a student and i'm going to use vdrift for a school project. Some one know if the game have a support for sensors with three degrees of freedom, to modify runtime the point of view of the player. If it is possible, which are the modules interested? I also want to know if the game can control more peripherals in the same time (for example one to control the car and one like a tracking device).

thanks so much. Smile
Reply
05-29-2007, 11:45 AM,
#2
 
The code to modify the view is in src/vamosworld.cc. Look for this line:
Code:
else if (cammode == CMInCar)
You can clear out the code in that "else if" block if you want... the end result is to set cam.position to where you want the camera to be and cam.dir to where you want to camera to look. The camera direction is stored as a quaternion.
Reply
05-30-2007, 02:39 PM,
#3
 
So what kind of project is it?
Reply
06-08-2007, 11:43 AM,
#4
 
In this project i have to interface the game with an helmet used for the virtual reality.
Reply
06-08-2007, 04:29 PM,
#5
 
That sounds cool. If you take any video or screenshots of your project as you work on it, we'd love to see them.
Reply
06-20-2007, 09:06 PM,
#6
 
Hmm this does sound kool. pls get some pics!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)