MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / projectToScreen

Function projectToScreen

src/scene/index.ts:384–394  ·  view source on GitHub ↗
(
  worldX: number, worldY: number, worldZ: number,
)

Source from the content-addressed store, hash-verified

382 * Used for zone labels, dimension references, interactive controls.
383 */
384export function projectToScreen(
385 worldX: number, worldY: number, worldZ: number,
386): { x: number; y: number; visible: boolean } {
387 const sx = bloom_project_to_screen(worldX, worldY, worldZ);
388 const sy = bloom_project_screen_y();
389 return {
390 x: sx,
391 y: sy,
392 visible: sx > -9000,
393 };
394}
395
396// ============================================================
397// Scene Picking (raycasting from screen)

Callers 1

r3f-bridge.tsFile · 0.90

Calls 2

bloom_project_to_screenFunction · 0.50
bloom_project_screen_yFunction · 0.50

Tested by

no test coverage detected