Skip to content

raylib.DrawCapsuleWires

JoeStrout edited this page Oct 17, 2026 · 4 revisions

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

Parameters

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

Return value

None.

Notes

In raylib 6.2 the argument order changed from slices, rings to rings, slices. Code that passes these positionally must swap them.

Example

// Inside BeginMode3D / EndMode3D:
raylib.DrawCapsuleWires [0,0,0], [0,2,0], 0.5, 8, 16, raylib.GREEN

Clone this wiki locally