- Home /
Question by
AlejandroGorgal · Mar 02, 2015 at 10:10 PM ·
javascripttrigger
Rotate character on trigger enter?
Hello, I have a character that jumps when it enters a collision trigger. The problem is that it jumps on whatever direction is looking at. I want it to look into a specific direction when reaching this trigger.
What would be the best approach for this?
Comment
Best Answer
Answer by andrew-lukasik · Mar 02, 2015 at 10:18 PM
transform.rotation = Quaternion.LookRotation( triggerCollider.transform.forward );//?