Skip to content

raylib.DrawCapsule

JoeStrout edited this page Apr 29, 2026 · 3 revisions

Draw a capsule with the center of its sphere caps at startPos and endPos

Parameters

Parameter Default Value Note
startPos
endPos
radius 1.0
slices 16
rings 8
color WHITE

Return value

None.

Notes

Example

// Inside BeginMode3D / EndMode3D:
raylib.DrawCapsule [0,0,0], [0,2,0], 0.5, 16, 8, raylib.BLUE

Clone this wiki locally