mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-17 00:13:17 +00:00
Skip unnecessary computations
This commit is contained in:
@@ -245,8 +245,7 @@ fn retarget_bvh(
|
||||
local_mat.matrix3 = local_mat.matrix3.orthonormalize();
|
||||
|
||||
// [psuedo] target_xform.rotation = local_mat.rotation;
|
||||
let (_, rotation, _) = local_mat.to_scale_rotation_translation();
|
||||
target_xform.rotation = rotation;
|
||||
target_xform.rotation = Quat::from_affine3(&local_mat);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user