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

findCharacterCenter

findCharacterCenter(character, out): Vector3 | undefined

Writes into out the centre of character’s body, its feet plus half its capsule’s height, and returns it: where a shot’s origin and reach are measured from, and what a mark or an effect centres on. Undefined for a character with no place. As three.js’s getCenter and Unity’s Bounds.center.

Parameter Type
character Entity
out Vector3

Vector3 | undefined