How to make so that the player could not pass through the boxes? The player has a rigidbody2d and boxcollider2d , the box has the same. But the player has the daw " isTrigger " included. I tried to turn it off, but still the player goes through the box. Z coordinates are the same.

  • Seriously? There are hundreds of such questions on the site. What is so lazy to look for that is easier to write, but still not spend money on a detailed description. There are so many reasons for your problem that you have to squeeze out more questions from you than the text is written here. I'll write keywords, if they don't tell you anything, then welcome to the Unity documentation and its tutors. Layer, player offset methods, collider vs rigidbody collision matrix, layer collision matrix, player movement speed, navmesh agent, fixedUpdate. - Xumera_hZ
  • Thanks, I figured it out! the ticked "simulated" in rigidbody2d was turned off, and you also had to add a second box collider2d without the active checkbox "isTrigger" - Vitaly Belousov

0