Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

findClickedTarget

findClickedTarget(world, raycaster): Entity | undefined

The hostile target a click’s or a tap’s ray crosses first, by its drawn bounds, nearer than the ground it hits: what the click picks.

Parameter Type
world World
raycaster Raycaster

Entity | undefined