Appearance
spool / Rig
Interface: Rig โ
Defined in: plugins/rig/types.ts:24
The handle rig returns.
Properties โ
roots โ
readonlyroots:Selector
Defined in: plugins/rig/types.ts:26
Every rig's root member: the entity that actually rides. A new selector on each read.
Methods โ
claim() โ
claim(
ctx):void
Defined in: plugins/rig/types.ts:42
Clears the orphan mark on the executing vehicle's rig.
Parameters โ
ctx โ
FunctionContext
Returns โ
void
face() โ
face(
ctx):void
Defined in: plugins/rig/types.ts:36
Turns the executing vehicle's rig to its yaw. Pitch is never copied, since it tilts the model.
Parameters โ
ctx โ
FunctionContext
Returns โ
void
markOrphans() โ
markOrphans(
ctx):void
Defined in: plugins/rig/types.ts:40
Marks every rig as orphaned; claim clears live ones before sweep.
Parameters โ
ctx โ
FunctionContext
Returns โ
void
pose() โ
pose(
ctx,self,members,pose,duration):void
Defined in: plugins/rig/types.ts:50
Merges pose(i) onto each of members, interpolated over duration ticks.
Run as the vehicle, or pass self to pick vehicles. Walks passengers so only that rig is touched.
Parameters โ
ctx โ
FunctionContext
self โ
Selector | undefined
members โ
readonly number[]
pose โ
(i) => Transform
duration โ
number
Returns โ
void
relayHits() โ
relayHits(
ctx,relay):void
Defined in: plugins/rig/types.ts:38
Turns a hit on the executing vehicle's rig hitbox into damage on the vehicle. The model needs a hitbox.
Parameters โ
ctx โ
FunctionContext
relay โ
Returns โ
void
replace() โ
replace(
ctx,mounted?):void
Defined in: plugins/rig/types.ts:34
Swaps the executing vehicle's model for a fresh one here, then runs mounted as the vehicle.
Riders that aren't part of the model, like limb bones, move to the new root.
Parameters โ
ctx โ
FunctionContext
mounted? โ
FunctionRef
Returns โ
void
summonOn() โ
summonOn(
ctx,vehicle,mounted?):void
Defined in: plugins/rig/types.ts:28
Summons the model here and mounts it on vehicle, then runs mounted as the vehicle.
Parameters โ
ctx โ
FunctionContext
vehicle โ
() => Selector
mounted? โ
FunctionRef
Returns โ
void
sweep() โ
sweep(
ctx):void
Defined in: plugins/rig/types.ts:44
Kills every rig still marked orphaned.
Parameters โ
ctx โ
FunctionContext
Returns โ
void