@modoki/engine / index / EntityScreenBounds
Interface: EntityScreenBounds
Debug & Journal
id
id:
number
layer
layer:
"3d"|"2d"
onScreen
onScreen:
boolean
screen
screen:
ScreenRect|null
On-screen rect in viewport CSS px, or null when the entity has no projectable geometry (empty/gizmo-only) or is fully behind the camera.
worldAABB?
optionalworldAABB?:object
World-space AABB (3D only) — the entity's TRUE geometric extent in world units, independent of the screen projection and distinct from the authored/resolved scale: size = box dimensions, center = box center. Lets Claude reason about real size ("this mesh is 2.3×1.1×0.8") without a screenshot. Omitted for 2D/UI and for entities with no projectable geometry.
Debug & Journal
center
center: [
number,number,number]
size
size: [
number,number,number]