mirror of
https://github.com/bevyengine/bevy
synced 2025-02-16 14:08:32 +00:00
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 <justthecooldude@gmail.com>
This commit is contained in:
parent
9423cb6a8d
commit
eb0a9e1586
1 changed files with 0 additions and 7 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue