Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

BodyTarget

BodyTarget<Target, Kind> = Target extends object ? Branded extends Kind ? Target : never : Target

Target where a verb for a body of Kind takes it: any entity but one whose spawn branded it with another kind, which fails to typecheck. A plain Entity is checked at run time instead.

Type Parameter
Target extends Entity
Kind extends RigidBodyType