Trait bevy::math::prelude::FaceToward[]

pub trait FaceToward {
    pub fn face_toward(eye: Vec3, center: Vec3, up: Vec3) -> Self;
}

Generates a translation / rotation matrix that faces a given target

Required methods

pub fn face_toward(eye: Vec3, center: Vec3, up: Vec3) -> Self

Generates a translation / rotation matrix that faces a given target

Loading content...

Implementors

impl FaceToward for Mat4

Loading content...