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

11 lines
193 B
C#
Raw Normal View History

using UnityEngine;
public class PlayerRotate : MonoBehaviour
{
2024-12-20 15:51:03 +00:00
public Vector3 LookTarget(Vector3 moveDir)
{
2024-12-23 20:34:57 +00:00
moveDir.y = 0;
2024-12-20 15:51:03 +00:00
return transform.position + moveDir;
}
}