debugoverlay.Sphere
From GMod Wiki
| Function | |
| Syntax |
debugoverlay.Sphere( Vector origin, Float size, Float duration (Seconds) (Defaults to 1), Color color (Defaults to white), Boolean skipdepth (Defaults to false) ) Where is this used? |
| Description: | |
| Creates a simple sphere the in 3D world space. | |
| Returns: | nil |
| Part of Library: | debugoverlay |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Debugoverlay.Sphere]Debugoverlay.Sphere [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Will draw a green sphere 50 units in radius centered around the origin for 10 seconds. |
|---|---|
| Used on | |
| Code | debugoverlay.Sphere(Vector(0,0,0), 50, 10, Color(0,255,0)) |
| Output | (See description) |
Additional Notes
- If the skipdepth argument is true, the line will Ingore Z and render through everything (becoming an overlay).
- Nothing will happen unless developer mode is greater than or equal to 1 (on).