- Home /
Can't use Rigidbody or Character Controller
I'm fairly new to Unity and I'm having trouble figuring out whether to use RigidBody or Character controller when creating a first person character. So far, I've used both of them somewhat successfully, but each has its own downsides that make them unusable. I've spent hours looking around on the internet and have found zero solutions to my problem.
Rigidbody has a problem where I am constantly getting stuck on the sides of walls and game objects. Altering constraints, collision boxes, interpolate, collision detection, and more have had zero effect on this. The only solution for Rigidbodies I have found is to apply a physics material with zero friction. However, this causes my character to constantly slide off of slopes, stairs, and even straight surfaces which makes it unusable. If I can fix the friction and clipping problem, I can just use a Rigidbody.
Character Controller fixes the issue with getting stuck, but I cannot use physics on it. I need my player to be able to launch themselves over long distances, bounce off surfaces, get pushed/pulled, swing, wallrun, slide, etc. Some of these I can do easily with RigidBody but without a way to apply force I'm kind of stuck.
I don't have any code or examples to post because this is more of a concept question rather than a particular error. Is there some sort of method that would allow me to either: Fix these collision problems on Rigidbody; or to apply forces to Character controllers so I can include some of these game mechanics. I've tried attaching both options onto objects, or creating a child object with a Rigidbody, but nothing has worked so far.
Just to clarify, I'm not asking how to apply force on a Rigidbody using a Character collider, I see that question/answer everywhere but that's not what I'm asking