twinStick/twinStickCrawler/Assets/Scripts/Creatures/Player/Movement/PlayerRotate.cs
2024-12-24 21:40:18 +01:00

14 lines
265 B
C#

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