Garry's Mod Wiki

render.DrawBox

render.DrawBox( Vector position, Angle angles, Vector mins, Vector maxs, table color = Color( 255, 255, 255 ) )

Description

Draws a box in 3D space.

This is a rendering function that requires a 3d rendering context.

This means that it will only work in 3d Rendering Hooks.

Arguments

1 Vector position
Origin of the box.
2 Angle angles
Orientation of the box.
3 Vector mins
Start position of the box, relative to origin.
4 Vector maxs
End position of the box, relative to origin.
5 table color = Color( 255, 255, 255 )
The color of the box. Uses the Color.

Page Links


Special Pages


Wikis

?

Render Time: 43ms

DB GetPage 4
Generate Html 15
SaveChanges (1) 10
Render Body 0
Render Sidebar 12