Trait bevy::math::prelude::FaceToward
[−]pub trait FaceToward {
fn face_toward(eye: Vec3, center: Vec3, up: Vec3) -> Self;
}
Expand description
Generates a translation / rotation matrix that faces a given target
Required methods
fn face_toward(eye: Vec3, center: Vec3, up: Vec3) -> Self
fn face_toward(eye: Vec3, center: Vec3, up: Vec3) -> Self
Generates a translation / rotation matrix that faces a given target