Collision Detection Issue

Hello everyone,

I am fairly new to Unity, and I was working on a game for someone, and came across a strange error. I have a block that bounces around that you are trying to catch, for now it is just in a big square. I also have a moving wall that bounces around and redirects the block. This is where the issue is, if I delete the moving wall, or if I move it outside of the walls, it causes the block to not collide with the bounding walls at all any more. Is there any particular reason that this would happen? Listed below are the settings of each of those objects, and then the scripts, please let me know if you have any ideas.

Block:
box collider with noenergyloss and trigger on

moving wall:
cube mesh collider, rigidbody

normal wall:
box collider and rigidbody

The script for the movement of the block basically just says if it hits a wall change direction and if it hits the player it is eatten.

If you need anything else let me know. Thanks in advance!

I’m not sure I understand.

You have a block within a box and you want it to bounce on the box’s walls?

If so - you have to either use 6 planes facing each other to form a box or create an inside out mesh in a 3D software and have a mesh collider attached to it, since the colliders of unity detect collision only from the outer shell of the object.