ColliderOptions
Defined in: server/api.d.ts:5230
What a collider stops, who passes it, how it looks and where it exists.
Properties
Section titled “Properties”blocks?
Section titled “blocks?”
optionalblocks?: ("characters"|"spells")[]
Defined in: server/api.d.ts:5234
What it stops. “characters”: players on foot or riding a broom or creature, NPCs and creatures. “spells”: bolts, aimed or homing, whoever cast them. Default both.
color?
Section titled “color?”
optionalcolor?:ColorLike|null
Defined in: server/api.d.ts:5254
Tints its faces, 0 to 1 per channel, for seeing where it is while building. Opacity defaults to 0.25. Default null: invisible.
deflect?
Section titled “deflect?”
optionaldeflect?:"mirror"|null
Defined in: server/api.d.ts:5249
“mirror”: a wand bolt that meets it flies on off its surface, angle in equal to angle out, still its caster’s bolt: it can hit anyone it meets but its caster. What Protego could never deflect (Incendio) and thrown objects (Oppugno) still end on it. Needs blocks to include “spells”. Default null: bolts end on it.
except?
Section titled “except?”
optionalexcept?:Player[]
Defined in: server/api.d.ts:5244
Let these players and their bolts through; everyone else is stopped. Excludes only.
optionalmap?:string
Defined in: server/api.d.ts:5264
The map it is in, as player.location().areaId names it; “Overland” or “” (the default) for the shared map.
optionalonly?:Player[]
Defined in: server/api.d.ts:5239
Stop only these players and their bolts; everyone else passes. NPCs are still stopped. Excludes except.
streamRange?
Section titled “streamRange?”
optionalstreamRange?:number
Defined in: server/api.d.ts:5269
Interest radius in cm around the shape’s centre: only players this close receive it. Clamped to 100-200000; default 50000 (500 m).
virtualWorld?
Section titled “virtualWorld?”
optionalvirtualWorld?:number
Defined in: server/api.d.ts:5259
The virtual world it is in, within map as an entity’s is. Default 0.