I’ve started making a 2d top down game and decided to write my own movement system instead of using a character controller. Problem is no matter what I change or add I can’t get my character to not run through walls. I’m guessing that the character controller has something coded so the player can’t just run through walls? I just can’t figure out how to get it working because I’ve only ever developed 3d style games.
Collisions depend on rigidbodies and rigidbodies need to be controlled with the Rigidbody-class in order to work. Translation or any manual positioning of rigidbodies will bypass the physics engine. In order to make collisions work without rigidbodies you need to either implement your own logic (raycasting is a start) or use a CharacterController.