Interface IRaycaster<T>

Interface for raycasting against a 3D scene.

interface IRaycaster<T> {
    raycastFromScreen(position: Vector2): Promise<Core.IRaycastResult<T>>;
    raycastFromWorld(position: Vector3): Promise<Core.IRaycastResult<T>>;
}

Type Parameters

  • T

    The type of object to raycast against.

Methods