Angle.Up
From GMod Wiki
Function | |
Syntax | Angle:Up( ) |
Description: | |
Returns a normalized vector pointing upwards from of the direction the angle is facing. | |
Returns: | Vector |
In Object: | Angle |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Angle.Up]Angle.Up [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- To better understand what forward, right, and up vectors are, straighten out your left arm in such a way that it's perpendicular to your body, pointing to something in front of you. This is a forward vector. Now take your right arm and straighten it out as well, except make this arm point to your right. This is a right vector. Now take either arm and point it upwards, so that it's at a 90 degree angle to your other arm. This is an up vector. Note that the direction that your arms are facing changes as you rotate or tilt your body - it is the same way with Angles.
- An angle describes pitch, yaw, and roll. Pitch and yaw can be thought of as the number of degrees that Vector(1,0,0) must be rotated around the y-axis [ Vector(0,1,0) ] and then the z-axis [ Vector(0,0,1) ] (respectively) to equal this angle's forward vector. An angle's roll is an additional value used for spinning things around their x-axis which does not affect a forward vector at all.