refactor: remove unnecessary brackets (BODMAS works without)

This commit is contained in:
Muhammad Nauman Raza 2024-05-27 22:49:19 +01:00
parent c47aede868
commit b7611b88c9
No known key found for this signature in database
GPG key ID: B0EF3A98B29ADB1D

View file

@ -82,7 +82,7 @@ pub fn attack(
for player_transform in set.p1().iter_mut() {
let attack_position =
player_transform.translation + ((player_transform.rotation * Vec3::Y) * 100.);
player_transform.translation + (player_transform.rotation * Vec3::Y * 100.);
if keys.just_pressed(KeyCode::Enter) {
commands