Angle.Up

From GMod Wiki

Jump to: navigation, search
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: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Angle.Up]Angle.Up [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionPrints a vector that represents the angle's upward direction to console.
Used onNewerShared.png
Code
local MyAngle = Angle(0, 0, 90)
print("The upward direction of the angle " .. tostring(MyAngle) .. " is " .. tostring(MyAngle:Up()))
OutputThe upward direction of the angle 0.000 0.000 90.000 is 0.0000 -1.0000 -0.0000


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox