SceneQueryOp

Description

abstract class Tinman.Engine.Scenes.Queries.SceneQueryOp

Derived from

ISceneQueryOp

Extended by

SceneQueryOpArg abstract

Default implementation of the ISceneQueryOp interface.

Public / Constructors

For​Ray


public static method ForRay → (1)

ray opt : Ray = default(Ray)

The ray, in terrain-space.

returns → ISceneQueryOpArg<Ray>

The scene query operation.

Creates a scene query operation for finding scene objects that intersect with the given ray.

The query result distance (see ISceneQueryResult.Distance) is the distance between the projection of the pick result onto the given ray opt and its origin.

The following query results are generated in a separate group when the terrain is hit:

Additional query results may be generated by ISceneObject.QueryRay.

For​Screen


public static method ForScreen → (1)

point opt : Vec2I = default(Vec2I)

The point, in screen-space (see ISceneView.Bounds).

returns → ISceneQueryOpArg<Vec2I>

The scene query operation.

Creates a scene query operation for finding terrain points, scene objects or 2D overlays for the given screen point.

If applicable, this query operation uses ISceneView3D.ScreenRay1 and delegates to ForRay, producing the same query results. Additional query results may be generated by ISceneEntityView.QueryScreen.