Angle.Right

From GMod Wiki

Jump to: navigation, search
Function
Syntax Angle:Right( )
Description:
Returns a normalized vector pointing to the right 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.Right]Angle.Right [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

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


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox