DebugVectorOptions
Defined in: types.ts:69
Appearance and cutoff options for DebugRegistry.drawVector.
Properties
Section titled “Properties”alpha?
Section titled “alpha?”
optionalalpha?:number
Defined in: types.ts:75
Arrow opacity, 0-1. Default 0.9.
color?
Section titled “color?”
optionalcolor?:number
Defined in: types.ts:73
Arrow color. Default 0xffffff.
headSize?
Section titled “headSize?”
optionalheadSize?:number
Defined in: types.ts:91
Arrowhead length in screen pixels, held constant across camera zoom. Default 8.
minLength?
Section titled “minLength?”
optionalminLength?: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.
origin?
Section titled “origin?”
optionalorigin?: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 }.
scale?
Section titled “scale?”
optionalscale?:number
Defined in: types.ts:71
Pixels of arrow per unit of the vector. Default 1.
width?
Section titled “width?”
optionalwidth?:number
Defined in: types.ts:89
Shaft thickness in screen pixels, held constant across camera zoom. Default 2.