Full Version: sensors with three degrees of freedom
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
The code to modify the view is in src/ Look for this line:
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.
So what kind of project is it?
In this project i have to interface the game with an helmet used for the virtual reality.
That sounds cool. If you take any video or screenshots of your project as you work on it, we'd love to see them.
Hmm this does sound kool. pls get some pics!