Beginner physics question

Hi, I would like to build something working like a point and click game, where the character moves, for example, in a room stopping when collision occurs with furniture, without moving anything.

The problem is that when he hits something he doesn’t stop and the object, obviously, fly away. Like in this test:

Test

Is it possible to get it with physics or have I to manage all with scripts?

Thanks
Ale

if you don’t want the boxes to move at all just remove the rigidbody from them.

I’ve tried with the boxes having only a Box Collider and the character with a Character Controller, but he goes straight through the boxes.

Perhaps have I to detect the collision and stop the movement via script?

Ale

How are you moving the object? If you use CharacterController.SimpleMove or .Move it should stop when it hits a collider. If you use, for example, transform.position, it won’t.

That’s ok! thanks a lot!

Ale