Projects a 3D world position into 2D screen coordinates.
Essential for placing HTML-based UI elements (nameplates, HUD markers) correctly over 3D game objects.
The world position to project.
The active Three.js camera.
Current viewport width in pixels.
Current viewport height in pixels.
ScreenPosition object containing pixel coordinates and visibility.
Projects a 3D world position into 2D screen coordinates.
Essential for placing HTML-based UI elements (nameplates, HUD markers) correctly over 3D game objects.