Garry's Mod Wiki
debugoverlay.Axis( Vector origin, Angle ang, number size, number lifetime = 1, boolean ignoreZ = false )
Description
Displays an axis indicator at the specified position, with 3 lines pointing in the positive direction (i.e. direction in which the values increase) of each axis.
This function will silently fail if the
It is not networked to clients, except for the listen server host.
It will not work when the game is paused.
developer ConVar is set to 0.It is not networked to clients, except for the listen server host.
It will not work when the game is paused.
Arguments
Example
Render the axis at the map origin, unrotated (Angle(0, 0, 0)).
Note that the green line is pointing to the left, despite there not being an Angle:Left function. It operates per the right hand rule.
The colors represent the direction it is pointing to:
- Red: Points to
ang:Forward(), positive X - Green: Points to
-ang:Right(), "left" or "negative right", positive Y - Blue: Points to
ang:Up(), positive Z
Output: 

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.
Page content is automatically updated four times a day. Edits and history are not available.
Last Parsed: Loading...