GetScreenToWorldRayEx method

Ray GetScreenToWorldRayEx(
  1. Vector2 position,
  2. Camera3D camera,
  3. num width,
  4. num height,
)

Get a ray trace from screen position (i.e mouse) in a viewport

Implementation

Ray GetScreenToWorldRayEx(
  Vector2 position,
  Camera3D camera,
  num width,
  num height,
) => run(
  () => _debugLabels.GetScreenToWorldRayEx(position, camera, width, height),
  () => _flat.GetScreenToWorldRayEx(
    position,
    camera,
    width.toInt(),
    height.toInt(),
  ),
);