Skip to content

DebugVectorOptions

Defined in: types.ts:78

Appearance and cutoff options for DebugRegistry.drawVector.

optional alpha?: number

Defined in: types.ts:84

Arrow opacity, 0-1. Default 0.9.


optional color?: number

Defined in: types.ts:82

Arrow color. Default 0xffffff.


optional headSize?: number

Defined in: types.ts:100

Arrowhead length in screen pixels, held constant across camera zoom. Default 8.


optional minLength?: 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.


optional origin?: 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 }.


optional scale?: number

Defined in: types.ts:80

Pixels of arrow per unit of the vector. Default 1.


optional width?: 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.