Skip to content

Commit f90da74

Browse files
author
KDecay
committed
Remove face_toward.rs (#4277)
# Objective - Part of the splitting process of #3503. ## Solution - Remove the `face_toward.rs` file containing the `FaceToward` trait. ## Reasons - It is unused inside of `bevy`. - The method `Mat4::face_toward` of the trait is identical to `Mat4::look_at_rh` (see https://docs.rs/glam/latest/glam/f32/struct.Mat4.html#method.look_at_rh). - Discussion in #3503. ## Changelog ### Removed - The `FaceToward` trait got removed. ## Migration Guide - The `FaceToward` trait got removed. To migrate you just have to change every occurrence of `Mat4::face_toward` to `Mat4::look_at_rh`.
1 parent 449a1d2 commit f90da74

File tree

2 files changed

+2
-45
lines changed

2 files changed

+2
-45
lines changed

crates/bevy_math/src/face_toward.rs

Lines changed: 0 additions & 41 deletions
This file was deleted.

crates/bevy_math/src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
mod face_toward;
21
mod geometry;
32

4-
pub use face_toward::*;
53
pub use geometry::*;
64
pub use glam::*;
75

86
pub mod prelude {
97
#[doc(hidden)]
108
pub use crate::{
11-
BVec2, BVec3, BVec4, EulerRot, FaceToward, IVec2, IVec3, IVec4, Mat3, Mat4, Quat, Rect,
12-
Size, UVec2, UVec3, UVec4, Vec2, Vec3, Vec4,
9+
BVec2, BVec3, BVec4, EulerRot, IVec2, IVec3, IVec4, Mat3, Mat4, Quat, Rect, Size, UVec2,
10+
UVec3, UVec4, Vec2, Vec3, Vec4,
1311
};
1412
}

0 commit comments

Comments
 (0)