- Home /
Gyroscope based First person controller
I am building an application and I want my FPC to move in the scene based on a circle and gyro input.
The circle is a GUI layout and if the user wants to move forward he has to touch inside the circle and drag his finger up (for example).
I found on the internet a script for gyro that rotates the camera based on gyro input. (iPhoneGyroCam).
If i drag my finger in the circle but not move my iPAD it's all good (the FPC moves in the direction I want). If I look around (not moving at all) it's all good again. This tells me that the gyro script is OK and the movement script is OK too.
My problem is that if i am starting to "walk" using the circle and rotate the iPAD the movement gets all messed up.
You can see all my script on the links below. I didn't want to create a very long post here.