how can i adjust a border's thickness with the box collider in unity?

how can i adjust a border’s thickness with the box collider in unity? in my game i have a 4 sided border which means i have 4 box colliders. in the game the player keeps getting pushed outside of the border by enemies. someone told me to solve the problem was to adjust each side’s thickness through each box collider. how do i do it?

Each Box collider has properties that can be adjusted. Select the object and look in the inspector window.

Sounds like something in your game is directly manipulating EDIT: transforms rather than using the correct API.

With Physics (or Physics2D), never manipulate the Transform directly. If you manipulate the Transform directly, you are bypassing the physics system and you can reasonably expect glitching and missed collisions and other physics mayhem.

Always use the .MovePosition() and .MoveRotation() methods on the Rigidbody (or Rigidbody2D) instance in order to move or rotate things. Doing this keeps the physics system informed about what is going on.

https://discussions.unity.com/t/866410/5

With a wheel collider, use the motor or brake torque to effect motion.

the thing is in GOD mode when i let snakes and spiders enemies build up on player the build up doesn’t push the player out of bounds. but when snakes, spiders, and chaser circles build up on the player because the chaser circles are so powerful when moving and on a build up in any direction it easily causes the player to be pushed out of the border. so i think it is a chaser circle problem. how do i adjust the chaser circle sprites so they don’t push player out of bounds whenever there is a big build up?

i couldn’t gain much from watching those videos since the technical stuff goes right over my head and makes my brain freeze and make my head want to explode trying to follow it so i directly clicking border and then scene i directly stretched the border out as far and as high as it could go in all 4 directions. up and down. left and right. and then when the chaser circles start coming fast and furious on the screen i would quickly bust them up for quick points instead of letting them have some kind of build up. if i let them somewhat build up i can get get big points in 1 hit cause one of my power ups is a laser bomb bullet that destroys large clusters of stuff with 1 bullet hit. another thing i could try is to increase the player speed. so when the chasers do build up the player will be that much more faster to outrun the chasers when they form a quick and powerful build up against me. i’ll try one of these things and let you know which one works for me

You have now made two followup posts without addressing if you investigated how you are moving these objects.

As I said in my post above,

Have you verified that you are NEVER manipulating a Transform.position directly on something using physics? I haven’t seen you assert this yet.