From eb0a9e15866c167d209ae8465f30509a0d5451b6 Mon Sep 17 00:00:00 2001 From: ira Date: Mon, 10 Oct 2022 16:50:18 +0000 Subject: [PATCH] Remove `Transform::apply_non_uniform_scale` (#6133) This is a holdover from back when `Transform` was backed by a private `Mat4` two years ago. Not particularly useful anymore :) ## Migration Guide `Transform::apply_non_uniform_scale` has been removed. It can be replaced with the following snippet: ```rust transform.scale *= scale_factor; ``` Co-authored-by: devil-ira --- crates/bevy_transform/src/components/transform.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/crates/bevy_transform/src/components/transform.rs b/crates/bevy_transform/src/components/transform.rs index 3f82b615ae..b154201b77 100644 --- a/crates/bevy_transform/src/components/transform.rs +++ b/crates/bevy_transform/src/components/transform.rs @@ -355,13 +355,6 @@ impl Transform { point += self.translation; point } - - /// Changes the `scale` of this [`Transform`], multiplying the current `scale` by - /// `scale_factor`. - #[inline] - pub fn apply_non_uniform_scale(&mut self, scale_factor: Vec3) { - self.scale *= scale_factor; - } } impl Default for Transform {