I am trying to make a 3rd person playable character, which is just a few shapes for now. I can make him move perfectly using scripts, but I can’t give him gravity without using a rigidbody. When I try to use rigidbody he falls over. When when I try to use a simple rectangle it topples over with rigidbody. When using the constraints in the ridigboy control to stabilize my character it then removed the effects of gravity!
Does anyone know of a tutorial on how to do this? Every tutorial I see uses the prefab which does not move or look how I am going to want. -or- the tutorials show how to make them move, but not with gravity.
I have been trying to make my character move for 4 days now! I can’t figure out the trick.
To move a Rigidbody with physics, you’d apply force with AddForce. To bring a rigidbody to a certain velocity, you’d add (desiredVelocity - rigidbody.velocity) force.
I personally use ForceMode.Acceleration with some tighter controls on the actual amount of force added, but ForceMode.VelocityChange is a good one if you want to reach that speed instantly.