Skip to content

GameObj

GameObj<T> = GameObjRaw & T

Defined in: packages/threeplay/src/core/types.ts:156

A game object. T holds the fields contributed by its components, so add([pos(), health(3)]) returns an object typed with pos and hp.

T = Record<string, any>