Interface PointerVisual
interface PointerVisual {
beamLength: number;
cursorPosition: [number, number, number];
hit: boolean;
laserPosition: [number, number, number];
}
beamLength: number;
cursorPosition: [number, number, number];
hit: boolean;
laserPosition: [number, number, number];
}
Properties
beam Length
beamLength: number
Beam length in metres — the hit distance, or maxLength on a miss.
cursor Position
cursorPosition: [number, number, number]
World-space cursor position — meaningful only when hit.
hit
hit: boolean
True when the ray hit a mesh (cursor is shown).
laser Position
laserPosition: [number, number, number]
World-space centre of the laser box.
Pure result of computePointerVisual: where the beam and cursor go.