five-on-it / packages/world/src/signals / signalHead
Function: signalHead()
signalHead(
mesh): {x:number;y:number;z:number; } |undefined
Defined in: packages/world/src/signals.ts:146
The signal head on a traffic light's arm, in the mesh's own frame: the middle of the vertices well away from the pole (at the origin), at the height of the highest of them; undefined for a mesh with no arm.
Parameters
mesh
Returns
{ x: number; y: number; z: number; } | undefined