Documentation
    Preparing search index...

    No description provided.

    Index
    • Ray cast against a set of ModelNode instances and return the closest result.

      Parameters

      • rayOrigin: Vector3

        Origin of the ray being cast.

      • rayDirection: Vector3

        Direction of the ray being cast. Does not need to be normalized.

      • models: ModelNode[]

        Array of models to cast against.

      • mode: RayCastMode = RayCastMode.Bounded

        Ray casting mode e.g. whether the cast should be limited by the length of rayDirection. See RayCastMode for details.

      Returns RayCastResult | undefined

      Information about the ray intersection including target ModelNode, hit position, and hit distance, or undefined if no intersection.

    • Ray cast against all ModelNode instances in a scene and return the closest result.

      Parameters

      • rayOrigin: Vector3

        Origin of the ray being cast.

      • rayDirection: Vector3

        Direction of the ray being cast. Does not need to be normalized.

      • scene: IScene

        Scene to cast against.

      • mode: RayCastMode = RayCastMode.Bounded

        Ray casting mode e.g. whether the cast should be limited by the length of rayDirection. See RayCastMode for details.

      Returns RayCastResult | undefined

      Information about the ray intersection including target ModelNode, hit position, and hit distance, or undefined if no intersection.