- Home /
Three Lane Character Movement, Help Please?
I've been searching for around two days now just to get a smooth working 3-Lane Character controller and would really appriceate some help.
Im using a character controller which will constantly be moving forward and the player can use 'A' and 'D' to move left and right. (To avoid objects comming toward the player)
I can get a character to move forward constantly but the problem occours when I try to switch lanes.
As Im using...
CharacterController controller = GetComponent<CharacterController>();
controller.Move(new Vector3(0,0,moveSpeed) * Time.deltaTime);
To move forward.
When I move left or right it either snaps too quick or doesnt really work.
I've tried lerping between seperate transforms child'ed to the player but this seems to ignore the lerp and snap, Maybe becuase the player is moving forward constantly?
I've also tried to lerp without using empty game objects, this hasnt worked either
The main goal is to get a character constantly moving forward, and to swtich between three lanes smoothly. Im a C# coder by the way but even JavaScript could help.