Compare commits
2 Commits
d0a8d3fa7f
...
e624d5db8e
Author | SHA1 | Date | |
---|---|---|---|
![]() |
e624d5db8e | ||
![]() |
7527f36390 |
@ -283,7 +283,7 @@ GameObject:
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &3836667616183644780
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -318,7 +318,7 @@ GameObject:
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!4 &2507610487897935131
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -153,7 +153,6 @@ public class VoyagePlayerShipMovementVisual : MonoBehaviour
|
||||
float deltaRotation = Mathf.DeltaAngle(lastRotationY, transform.eulerAngles.y);
|
||||
currentAngularVelocity = deltaRotation / Time.fixedDeltaTime;
|
||||
float desiredYaw = currentAngularVelocity / angularVelocityToYaw;
|
||||
Debug.Log(desiredYaw);
|
||||
// get smoothed yaw
|
||||
desiredWorldYaw = Mathf.SmoothDampAngle(desiredWorldYaw, desiredYaw, ref rotationVelocity, yawRotationSmoothTime);
|
||||
// desiredWorldYaw = desiredYaw;
|
||||
|
Loading…
Reference in New Issue
Block a user