Answer the question
In order to leave comments, you need to log in
Why does an object go through walls?
The walls have Box Collider 2d , as does the player.
What to do?
Answer the question
In order to leave comments, you need to log in
You cannot move physics through a standard transform component.
Add a rigid body and move through it - Rigidbody.MovePosition(), or better by adding a movement impulse - rb2D.AddForce(transform.up * thrust, ForceMode2D.Impulse);
https://docs.unity3d.com/ScriptReference/Rigidbody...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question