@modoki/engine / index / pointQuery2D
Function: pointQuery2D()
pointQuery2D(
world,x,y):number|null
Which physics entity (if any) contains the point (x,y) in ECS/screen coords — the pick/hit-test query. Returns the first solid collider covering the point.
Parameters
world
World
x
number
y
number
Returns
number | null