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

EntityUnderRayOptions

What findEntityUnderRay searches.

Property Type Description
accepts? (entity) => boolean Which of the query’s entities it may pick; left out, any.
query Query The entities it picks among, each drawn through its RefTrait.
within? number Metres along the ray past which nothing is picked, such as where the same ray meets the ground; left out, any distance.