x


Third Person Camera Orbit

I am making a 3D platformer, and trying to use a script that, when the player presses W,A,S,or D, rotates the camera around the player. My friend tried to explain it to me, but I still do not get it. He said something about vectors and quaternions. How does camera orbiting work? What do Vectors and Quaternions do? The WASD controls act the same as they do in cames that use the C stick or the D pad for camera rotation. I need help.

more ▼

asked Mar 13 '12 at 02:55 AM

arctic_waffle gravatar image

arctic_waffle
1 4 4 5

Get your friend to teach you how to code. It's much, much easier to be taught by someone in person than to ask for help on the internet.

Mar 13 '12 at 02:56 AM syclamoth

My friend has helped me he did it right in front of my eyes. I need a written explination of a Vectors and Quaternions. I need an explination of camera orbiting.

Mar 14 '12 at 02:09 AM arctic_waffle

Almost all of these things are in the script reference and Wikipedia. The resources exist, you just need to look at them.

Camera orbitting works the way you tell it to. There are several ways of implementing it, and the exact details depend entirely on which way you choose to use.

Mar 14 '12 at 02:12 AM syclamoth

I will go to the Wikipedia page and see if I can find it out. My friend told me it is difficult to understand.

Mar 15 '12 at 03:24 AM arctic_waffle

Friends who tell you you're stupid aren't very good friends. Although, to be fair you don't really need to know how quaternions work to be able to use them, just read up in the script reference to see what you can do. All you really need to know is that they represent rotations in such a way as to avoid gimbal-lock etc, and that they don't translate very well into 3-axis rotations (for exactly that reason). Vectors aren't that hard to understand- they're really just directions in n-dimensional space. You use them every day, and you probably don't even notice.

Other than that, read some coding tutorials, and then actually read through the script to pick it apart. Something like a keyboard orbitter won't be that hard to reverse-engineer, and you'll almost certainly learn something useful.

Mar 15 '12 at 03:36 AM syclamoth
(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:

x3340
x3014
x442
x102
x36

asked: Mar 13 '12 at 02:55 AM

Seen: 865 times

Last Updated: Mar 15 '12 at 03:49 AM