API

Function CreatePickingRayInCameraSpace

  • Creates a ray that can be used to pick in the scene

    Parameters

    • scene: Scene

      defines the scene to use for the picking

    • x: number

      defines the x coordinate of the origin (on-screen)

    • y: number

      defines the y coordinate of the origin (on-screen)

    • Optionalcamera: any

      defines the camera to use for the picking

    Returns Ray

    a Ray