• ### What is your GameDev Story?

#### Archived

This topic is now archived and is closed to further replies.

# Up vector

This topic is 5397 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

this must be really basic but i''ve been having problems with this all day: is the up vector in relation with the origin or the target vector (for cameras)

##### Share on other sites
The UP vector is whatever direction is up relative to the camera. For example, if using Left Hand Coordinates and the EYE vector is (0, 0, 0) and the look-at vector is (0,0,10). The Up vector could be (0,1,0), which would act as if we are standing upright. If the UP vector is (0,-1,0) that means we''re upside down. If its (1,0,0) that means we''re sideways! make sure the UP vector is a unit vector.

• ### What is your GameDev Story?

In 2019 we are celebrating 20 years of GameDev.net! Share your GameDev Story with us.

• 9
• 9
• 9
• 34
• 16
• ### Forum Statistics

• Total Topics
634123
• Total Posts
3015654
×