- Home /
This post has been wikified, any user with enough reputation can edit it.
Question by
el-santia93 · Sep 27, 2013 at 10:03 AM ·
positioningturning
Can'tget my chareacter to turn at corners well
i want my character to turn at corners kinda like temple run but its happening so quickly and its awkward do i need to use animation for this or can i accomplis with code. Here is my current code.
//controls fish turning right
if(isMoving&&Input.GetKeyDown (KeyCode.RightArrow)&&canTurn&&turn!=1){
//gameObject.animation.Play("right");
transform.localEulerAngles.y +=90;
turn=1;
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613114911im_/https://answers.unity.com/themes/thub/images/avi.jpg)