Skip to content

@modoki/engine / index / pointQuery3D

Function: pointQuery3D() ​

pointQuery3D(world, x, y, z): number | null

Which physics entity (if any) contains the point (x,y,z) in ECS/world coords — the pick/hit-test query. Returns the first solid collider covering the point.

Parameters ​

world ​

World

x ​

number

y ​

number

z ​

number

Returns ​

number | null

Built with Modoki.