Function ambient_api_core::camera::clip_position_to_world_ray
source · pub fn clip_position_to_world_ray(
camera: EntityId,
clip_space_position: Vec2
) -> Ray
Available on crate feature
client
only.Expand description
Converts clip-space coordinates to a Ray in world space.
To obtain clip-space coordinates, use screen_to_clip_space.