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