- Home /
Rigidbody character controller can't walk on stairs
Hi there! We're trying to make a character controller using rigidbody. It works but we encountered a problem. Our rigidbody based character can't walk on stairs. He just stands. We have to fix this problem but we can't find a working solution using Google.
I know, character controller can walk on stairs but our character has to interact with other rigidbodies in our game. So, character controller isn't a good solution for us.
Our movement code
Vector3 movement = new Vector3(Input.GetAxis("Horizontal"), 0.0f, Input.GetAxis("Vertical"));
movement = transform.TransformDirection(movement);
if (movement.sqrMagnitude > 1)
movement.Normalize();
rigid.velocity = movement * movementSpeed;
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612174543im_/https://answers.unity.com/themes/thub/images/avi.jpg)