You fix some, you brake some

This commit is contained in:
ThomasCharester committed 2026-11-10 15:38:19 +03:00
1 parent d810ea00b6
commit 1a75cf8461
778 files changed
+203405 -86541

No files matched your search

@@ -139,11 +139,15 @@ namespace Code.Game.Gameplay.Player
/// </summary>
public void UpdateRotation(ref Quaternion currentRotation, float deltaTime)
{
if (Freeze) return;
if (LookInputVector.sqrMagnitude > 0f && OrientationSharpness > 0f)
{
// Smoothly interpolate from current to target look direction
Vector3 smoothedLookInputDirection = Vector3.Slerp(Motor.CharacterForward, LookInputVector,
Vector3 smoothedLookInputDirection = Vector3.Slerp(
Motor.CharacterForward,
LookInputVector,
1 - Mathf.Exp(-OrientationSharpness * deltaTime)).normalized;
// Set the current rotation (which will be used by the KinematicCharacterMotor)