Skip to content

Commit

Permalink
Update glam (0.15.1) and hexasphere (3.4) (bevyengine#2199)
Browse files Browse the repository at this point in the history
This is a version of bevyengine#2195 which addresses the `glam` breaking changes.
Also update hexasphere to ensure versions of `glam` are matching
  • Loading branch information
NathanSWard committed May 18, 2021
1 parent 2fcac67 commit 4563e69
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crates/bevy_gltf/src/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ async fn load_gltf<'a, 'b>(
scale,
} => Transform {
translation: bevy_math::Vec3::from(translation),
rotation: bevy_math::Quat::from(rotation),
rotation: bevy_math::Quat::from_vec4(rotation.into()),
scale: bevy_math::Vec3::from(scale),
},
},
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_math/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ license = "MIT"
keywords = ["bevy"]

[dependencies]
glam = { version = "0.14.0", features = ["serde", "bytemuck"] }
glam = { version = "0.15.1", features = ["serde", "bytemuck"] }
bevy_reflect = { path = "../bevy_reflect", version = "0.5.0", features = ["bevy"] }
2 changes: 1 addition & 1 deletion crates/bevy_reflect/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ parking_lot = "0.11.0"
thiserror = "1.0"
serde = "1"
smallvec = { version = "1.6", features = ["serde", "union", "const_generics"], optional = true }
glam = { version = "0.14.0", features = ["serde"], optional = true }
glam = { version = "0.15.1", features = ["serde"], optional = true }

[dev-dependencies]
ron = "0.6.2"
2 changes: 1 addition & 1 deletion crates/bevy_render/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ downcast-rs = "1.2.0"
thiserror = "1.0"
anyhow = "1.0"
hex = "0.4.2"
hexasphere = "3.3"
hexasphere = "3.4"
parking_lot = "0.11.0"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_transform/src/components/global_transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ impl GlobalTransform {
let forward = Vec3::normalize(self.translation - target);
let right = up.cross(forward).normalize();
let up = forward.cross(right);
self.rotation = Quat::from_rotation_mat3(&Mat3::from_cols(right, up, forward));
self.rotation = Quat::from_mat3(&Mat3::from_cols(right, up, forward));
}
}

Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_transform/src/components/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ impl Transform {
let forward = Vec3::normalize(self.translation - target);
let right = up.cross(forward).normalize();
let up = forward.cross(right);
self.rotation = Quat::from_rotation_mat3(&Mat3::from_cols(right, up, forward));
self.rotation = Quat::from_mat3(&Mat3::from_cols(right, up, forward));
}
}

Expand Down

0 comments on commit 4563e69

Please sign in to comment.