GeometryInstancesSpatialQuery (object)

Query object returned by GeometryInstancesSpatialQueries.beginSpatialQuery.

GeometryInstancesSpatialQuery GeometryInstancesSpatialQuery GeometryInstancesSpatialQuery

Methods

  GeometryInstancesSpatialQuery ( in GeometryInstancesSpatialQuery other )
  GeometryInstancesSpatialQuery ( in Ref<GeometryInstancesSpatialQueries> queryCache )
  GeometryInstancesSpatialQuery ()
GeometryInstancesSpatialQuery clone ? ()
  getClosest ! ( in Vec3 position, in Scalar maxUnscaledDistance, io Size geometryKey, io GeometryLocation location )
  raycast ! ( in Ray ray, in Boolean doubleSided, in Scalar coneThreshold, in Scalar maxDistance, io Size geometryKey, io GeometryLocation location )

Methods in detail

GeometryInstancesSpatialQuery ( in GeometryInstancesSpatialQuery other )

copy constructor


GeometryInstancesSpatialQuery ( in Ref<GeometryInstancesSpatialQueries> queryCache )


GeometryInstancesSpatialQuery ()

default constructor


GeometryInstancesSpatialQuery GeometryInstancesSpatialQuery.clone? ()

clone method


GeometryInstancesSpatialQuery.getClosest! ( in Vec3 position, in Scalar maxUnscaledDistance, io Size geometryKey, io GeometryLocation location )

Like SpatialQueryable.getClosest, but returns a geometryKey identifying the instance that was hit (if any). If none was hit, the returned GeometryLocation will be invalid, and geometryKey will be InvalidIndex.


GeometryInstancesSpatialQuery.raycast! ( in Ray ray, in Boolean doubleSided, in Scalar coneThreshold, in Scalar maxDistance, io Size geometryKey, io GeometryLocation location )

Like SpatialQueryable.raycast, but returns a geometryKey identifying the instance that was hit (if any). If none was hit, the returned GeometryLocation will be invalid, and geometryKey will be InvalidIndex.