correctly setup bevy_lunex 2d/3d composite

This commit is contained in:
2024-12-01 17:36:39 -05:00
parent 9800d1fd74
commit 2ad50f7ac8
6 changed files with 92 additions and 26 deletions

View File

@@ -13,6 +13,6 @@ impl Plugin for SimpleAnimationPlugin {
fn rotate(mut query: Query<(&mut Transform, &RotationAnimation)>, time: Res<Time>) {
for (mut transform, rot) in query.iter_mut() {
let cur_rot = transform.rotation;
transform.rotation = cur_rot * Quat::from_axis_angle(rot.axis, rot.speed.to_radians() * time.elapsed_seconds());
transform.rotation = cur_rot * Quat::from_axis_angle(rot.axis, rot.speed.to_radians() * time.delta_seconds());
}
}