DebugVectorOptions
Defined in: types.ts:78
Appearance and cutoff options for DebugRegistry.drawVector.
Properties
Section titled “Properties”alpha?
Section titled “alpha?”
optionalalpha?:number
Defined in: types.ts:84
Arrow opacity, 0-1. Default 0.9.
color?
Section titled “color?”
optionalcolor?:number
Defined in: types.ts:82
Arrow color. Default 0xffffff.
headSize?
Section titled “headSize?”
optionalheadSize?:number
Defined in: types.ts:100
Arrowhead length in screen pixels, held constant across camera zoom. Default 8.
minLength?
Section titled “minLength?”
optionalminLength?:number
Defined in: types.ts:96
Draw nothing while the vector is shorter than this. Measured on the value
the provider returns, before scale is applied, so the cutoff is in the
vector’s own units (px/s for a velocity). Default 0 — a zero-length vector
never draws either way, since it has no direction.
origin?
Section titled “origin?”
optionalorigin?:Vec2Like
Defined in: types.ts:90
World-space pixel offset added to the entity’s position, so the arrow can
start at a muzzle or a hand instead of the entity’s origin. Not rotated by
the entity. Default { x: 0, y: 0 }.
scale?
Section titled “scale?”
optionalscale?:number
Defined in: types.ts:80
Pixels of arrow per unit of the vector. Default 1.
width?
Section titled “width?”
optionalwidth?:number
Defined in: types.ts:98
Shaft thickness in screen pixels, held constant across camera zoom. Default 2.
Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/debug.md.