Skip to content

raylib.DrawCube

JoeStrout edited this page Apr 29, 2026 · 3 revisions

Draw cube NOTE: Cube position is the center position

Parameters

Parameter Default Value Note
position
width 1.0
height 1.0
length 1.0
color WHITE

Return value

None.

Notes

Example

// Inside BeginMode3D / EndMode3D:
raylib.DrawCube [0,0,0], 2, 2, 2, raylib.RED

Clone this wiki locally