Back to TPG

tpg.ent.flag.client:DrawCloth

C🏷️ Flag

Part of TPG namespace

ENT:DrawCloth(top, fwd, right, col)
View on GitHub|entities/entities/tpg_flag/cl_init.lua:46-60
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Draws the waving cloth as a strip of quads, SEGS segments long, each offset by a sine of time plus its own segment index so the wave travels down the cloth rather than bobbing uniformly.

Parameters

NameTypeDescription
topVectorWorld position of the cloth's top-left corner (pole tip).
fwdVectorForward direction the cloth extends along.
rightVectorRight direction, used for the wave's sideways offset.
colColorTint (team colour, or grey while neutral).

Returns

No return values documented.

Examples

No examples available.

Used In

No usages found in the codebase.