Function ambient_api::prelude::camera::screen_position_to_world_ray
source · pub fn screen_position_to_world_ray(
camera: EntityId,
screen_position: Vec2
) -> Ray
Expand description
Converts a screen position (e.g. mouse position) to a Ray in world space.