Documentation - v20.0.0-dev
    Preparing search index...

    The picking of the viewer's scene (ViewerScene.raycaster): the engine's raycast of its meshes, sprites and clipping planes, and the SceneObjectController.raycast of each controller for the objects drawn outside the engine, their hits as SceneIntersections.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • The objects a ray hits, sorted as seen: by layer drawn, the highest first (a layer is drawn over the lower ones, whatever their depth), then nearest first; the quads of the clipping planes shown last, drawn behind every object. One raycast of the engine's scene, the objects options.filter leaves out skipped before their raycast, then the raycast of each controller. The hidden objects are left out, and what the clipping planes cut.

      Parameters

      • ray: Ray

        World frame.

      • camera: Camera

        The camera the ray goes through: the sprites face it, its world matrices as last drawn.

      • options: ViewerRaycastOptions = {}

        The objects hit, how many, and the lines' tolerance.

      Returns SceneIntersection[]

      The hits, the caller's.