0
\$\begingroup\$

I am making a 3rd person game with a simple orbit cam and it works fine most of the time, but since I have a box collider and I walk across an uneven surface, the player tends to tip over. How should I set it up so the player would not tip over anymore?

\$\endgroup\$
2
\$\begingroup\$

You should use a capsule collider, because it doesn't have edges and works great and also you could apply some constraints in the Rigidbody. It's common to apply.

Freeze position in: x and z

Freeze rotation in: x, y, and z

I hope that this will solve your problem.

Cheers!

\$\endgroup\$
1
  • \$\begingroup\$ Thank you. I had a Capsule collider before and thought about adding constraints but for some reason I decided to add a Box collider instead. I don't know why. \$\endgroup\$
    – alexo1001
    May 29 '16 at 23:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .