Preparing search index...

    The latest targeting ray for an interactor. See SpecsInteractionModule.Interactor#getTargetingRay. origin is in centimeters and direction is unit length in world space.

    This is a shared, reused instance. Valid for the current frame only, re-fetch each frame. Copy any value you need to keep beyond the current frame.

    Lens Scripting Version 375

    const ray = interactor.getTargetingRay();
    if (ray && ray.isTracked) {
    print("aiming from " + ray.origin + " toward " + ray.direction);
    }

    Hierarchy (View Summary)

    Index

    Properties

    direction: vec3

    Ray direction, unit length, in world space.

    Lens Scripting Version 375

    isTracked: boolean

    Whether the interactor was tracked when this ray was sampled.

    Lens Scripting Version 375

    origin: vec3

    Ray origin, in centimeters.

    Lens Scripting Version 375

    Methods

    • Returns the fully-qualified JavaScript type name for this class (for example, "Component.Camera"). This is a static accessor (no instance required) and returns the same value as the instance getTypeName().

      Returns string

      Lens Scripting Version 375

    • Returns true if the object matches or derives from the passed in type.

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

      Parameters

      Returns boolean