twinStick/twinStickCrawler/Assets/Scripts/Creatures/Player/Movement/PlayerRotate.cs

14 lines
265 B
C#
Raw Normal View History

2024-12-24 20:40:18 +00:00
using UnityEngine;
namespace Creatures.Player.Movement
{
public class PlayerRotate : MonoBehaviour
{
public Vector3 LookTarget(Vector3 moveDir)
{
moveDir.y = 0;
return transform.position + moveDir;
}
}
}