mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Revert change to CalculateAngularVelocity
Quaternion doesn't have `normalize`
This commit is contained in:
parent
25b6366cc0
commit
376a733386
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user