Revert change to CalculateAngularVelocity

Quaternion doesn't have `normalize`
This commit is contained in:
MrGadget 2024-04-15 12:24:49 -04:00
parent 25b6366cc0
commit 376a733386

View File

@ -181,7 +181,8 @@ protected virtual void Update()
void CalculateAngularVelocity(Quaternion currentRot)
{
// calculate angle between two rotations
Quaternion deltaRotation = (currentRot * Quaternion.Inverse(lastRotation)).normalize;
Quaternion deltaRotation = currentRot * Quaternion.Inverse(lastRotation);
//Quaternion deltaRotation = (currentRot * Quaternion.Inverse(lastRotation)).normalize;
// convert to angle axis
deltaRotation.ToAngleAxis(out float angle, out Vector3 axis);