fix: DoubleJump rotation
This commit is contained in:
@@ -633,7 +633,7 @@ public class Player : MonoBehaviour
|
||||
// Rotate COG
|
||||
float angle = Mathf.Lerp(0, 5, _state.Running);
|
||||
if (_doubleJump)
|
||||
angle = Mathf.Clamp01(_doubleJumpTime * 3) * 360;
|
||||
angle = Mathf.Sqrt(Mathf.Clamp01(_doubleJumpTime * 3)) * 360;
|
||||
|
||||
_references.COG.transform.localRotation = Quaternion.Euler(angle, 0, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user