five-on-it / packages/world/src/lamps / lampHead
Function: lampHead()
lampHead(
mesh): {x:number;y:number;z:number; } |undefined
Defined in: packages/world/src/lamps.ts:42
The head of a lamp's mesh, in the mesh's own frame: the middle of the box round its faces of the head's colour, where its light comes from; undefined for a mesh without any.
Parameters
mesh
Returns
{ x: number; y: number; z: number; } | undefined