Angle.Forward

From GMod Wiki

Jump to: navigation, search
Function
Syntax Angle:Forward( )
Description:
Returns a normalized vector pointing in the direction the angle is pointing
Returns: Vector
In Object: Angle
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Angle.Forward]Angle.Forward [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

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


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox