Skip to content

Commit

Permalink
Remove Transform::apply_non_uniform_scale (bevyengine#6133)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
2 people authored and ItsDoot committed Feb 1, 2023
1 parent 85fd2a7 commit fe4be89
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions crates/bevy_transform/src/components/transform.rs
Expand Up @@ -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 {
Expand Down

0 comments on commit fe4be89

Please sign in to comment.