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

    Where a ray crosses a sprite's image, facing the camera.

    interface SpriteHit {
        distance: number;
        layer: MeshLayer;
        point: Vector3;
        sprite: SpriteProxy;
    }
    Index

    Properties

    distance: number

    From the ray origin to point, world frame.

    layer: MeshLayer

    The layer the sprite is drawn in.

    point: Vector3

    World frame.

    sprite: SpriteProxy

    The sprite hit (see SpriteController.addSprites); its owner, the application's object.