Hi! I have a player that stops all its movement whenever it stays inside of a trigger tagged “Spline”. From there, I would like the player to act on its own. What I was shooting for is to have to player face the same local direction as the trigger. I’m not quite sure how I would do this. So far, all I have is the player facing the z-axis on trigger with this:
transform.rotation = Quaternion.FromToRotation(Vector3.up, hit.normal);
How can I get the player to face the same z local direction as my trigger?