Object physically reacting to Player

Hey guys,

any good aproaches how to do a crate that is physically reacting to the player (first person)?
I want to “push” objects around by moving into them.

Thx in advance :smile:
Greetz

Ecke

Create cube. Add rigid body to cube. Change settings of rigid body.

Change what settings ?

Because for sure thats what I already tried.

It seems you are very new to Unity. Best practices at that stage would be doing tutorials and the like. Check the documentation, and look into the Rigidbody section and general Physics.

Doing some tutorials will also make you understand Unity better than just brute-forcing some relatively advanced topics.

The 2D platformer tutorial has a script that does what you want.

It allows a Character Controller to push a rigid body.

PlatformerPushBodies.js