x


Minor Track Ball Issues

Greetings, people!

I have been working on rotating a camera with track ball script for the past one week. Generally things are going okay, the camera moves left/right/up/down along with the mouse quite nicely. But the problem is, when the camera is rotated to another side of the game arena, it starts to go upward when the mouse goes downward.

Apparently my rusty trigonometry is not helping at all in figuring out what is wrong (I am sure the solution to this is really simple, but I cannot get it to work). I have attached a bare minimal sample Unity project that shows this problem, and I'm confident that you experts can help me with the script.

Thanks in advance for any help that I am getting! :)

Regards, Ben.

more ▼

asked May 13 '12 at 07:31 AM

BenGoh gravatar image

BenGoh
15 1 2

(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:

x3009
x84
x65
x37

asked: May 13 '12 at 07:31 AM

Seen: 458 times

Last Updated: May 13 '12 at 07:31 AM