diff --git a/Assets/Scripts/PlayerController.cs b/Assets/Scripts/PlayerController.cs index 8cf80e5..8c2ecdc 100644 --- a/Assets/Scripts/PlayerController.cs +++ b/Assets/Scripts/PlayerController.cs @@ -58,7 +58,8 @@ public class PlayerController : MonoBehaviour if (this.collisionGameObject != null) { - transform.rotation = Quaternion.Slerp(transform.rotation, this.collisionGameObject.transform.rotation, Time.deltaTime * 1.0f); + Quaternion tempRotate = new Quaternion(transform.rotation.x, transform.rotation.y, this.collisionGameObject.transform.rotation.z, transform.rotation.w); + transform.rotation = Quaternion.Slerp(transform.rotation, tempRotate, Time.deltaTime * 1.0f); } rb.MovePosition(rb.position + moveDirection);