bevy/crates/bevy_render
ira 37860a09de Add Camera::viewport_to_world (#6126)
# Objective

Add a method for getting a world space ray from a viewport position.

Opted to add a `Ray` type to `bevy_math` instead of returning a tuple of `Vec3`'s as this is clearer and easier to document
The docs on `viewport_to_world` are okay, but I'm not super happy with them.

## Changelog
* Add `Camera::viewport_to_world`
* Add `Camera::ndc_to_world`
* Add `Ray` to `bevy_math`
* Some doc tweaks

Co-authored-by: devil-ira <justthecooldude@gmail.com>
2022-10-05 22:16:26 +00:00
..
macros Bump Version after Release (#5576) 2022-08-05 02:03:05 +00:00
src Add Camera::viewport_to_world (#6126) 2022-10-05 22:16:26 +00:00
Cargo.toml remove copyless (#6100) 2022-09-27 18:11:40 +00:00