twinStick/twinStickCrawler/Assets/Scripts/Creatures/Player/PlayerRotate.cs
2024-12-23 21:34:57 +01:00

11 lines
193 B
C#

using UnityEngine;
public class PlayerRotate : MonoBehaviour
{
public Vector3 LookTarget(Vector3 moveDir)
{
moveDir.y = 0;
return transform.position + moveDir;
}
}