objects overlap on collision
Hi,
I would like to understand something. I'm dragging a sprite into the scene it becomes a game object. I attach a box collider (2d), rigidbody (2d), then a script that tells the object to move along with the cursor. Do the same for another object (except for the moving script)
Oh, and I attach a bouncy 2d material.
Now to the point. Why is it that when the two objects collide they overlap each other. It doesn't make any sense. They are "solid" objects that have colliders. Colliders should be impermeable unless told otherwise by the script. Is this a bug?
And even more interesting if you put walls (obstacles) that are just rigid bodies set to be static. and you push the object between the "cursor" and the wall. (Check the attached image)
Your answer
Follow this Question
Related Questions
how avoided this among my player and the wall? 0 Answers
two boxCasts casted from same point give different results 0 Answers
All colliders not longer working 0 Answers
Why is OnTriggerEnter2d not being called? 1 Answer
Tilemap Collider not Colliding 0 Answers