x


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.

iPhoneAnalogStick

FPSWalkeriPhone

MouseLookiPhone

more ▼

asked Feb 06 '12 at 04:07 PM

rhose87 gravatar image

rhose87
78 14 17 17

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2000
x1371
x360
x49

asked: Feb 06 '12 at 04:07 PM

Seen: 1302 times

Last Updated: Feb 06 '12 at 04:07 PM