2.5D Platformer — Pushing RigidBodies #7

Pushing boxes has never been easier

Is your Character Controller unable to move objects? Do not worry! It’s simpler than you think. You’ll just need to add a Rigidbody to your GameObjects you want to move.

If the Character Controller hits a GameObject with a Rigidbody, we’ll add a force to it which is the Character Controller move direction multiplied by a push power force. And that’s it! Really.

Oh, and to avoid funky behaviours with the object, try freezing the rotation. Or don’t. It’s your choice.