Skip to content

DebugVectorOptions

Defined in: types.ts:69

Appearance and cutoff options for DebugRegistry.drawVector.

optional alpha?: number

Defined in: types.ts:75

Arrow opacity, 0-1. Default 0.9.


optional color?: number

Defined in: types.ts:73

Arrow color. Default 0xffffff.


optional headSize?: number

Defined in: types.ts:91

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


optional minLength?: number

Defined in: types.ts:87

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:81

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:71

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


optional width?: number

Defined in: types.ts:89

Shaft thickness in screen pixels, held constant across camera zoom. Default 2.