Function CreatePickingRayInCameraSpaceToRef
-
CreatePickingRayInCameraSpaceToRef(
scene: Scene,
x: number,
y: number,
result: Ray,
camera?: any,
): SceneParameters
- 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)
- result: Ray
defines the ray where to store the picking ray
Optionalcamera: anydefines the camera to use for the picking
Returns Scene
the current scene
- scene: Scene
Creates a ray that can be used to pick in the scene