#orientation

3 messages · Page 1 of 1 (latest)

charred ferry
#

so in the documentation, they used the camera.up property as a normal to the camera to specify the orientation of the camera, so that the lookAt was okay and wasn't weirdly angled.

However, I don't understand what's the other uses of the up property? Which class/where does it come from?

What is it? It sounds so random to me

#

or is it exclusive to only camera?

vernal orbit
#

Its on all objects and it controls what the "up" axis used for .lookAt is. By default its a shared global == 0,1,0

but you can override it per object .. for instance in a flight sim, where you want the camera to be able to go upside down or something.. you would set the .up of the camera to be whatever vector is "up" relative to the airplane