Question by
Neomedus · Jun 22, 2020 at 01:47 AM ·
physics2dcollider2dpushdrag and drop
Push object out of another
What I want to do is if I drag and release an object on top of another object, it gets pushed out the nearest side. I've tried for a long time to get it to work but every solution I come up with has a lot of problems. Does anyone have any suggestion?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613001509im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Using a different physic material on a single object depending on the object colliding with it? 0 Answers
OnCollisionExit2D no longer gives contact information 0 Answers
how to make force inversely proportional to the distance 0 Answers
Instantiate and launch prefab that's overlapping player? 1 Answer
How To create 2D collision detection on object which changes dimensions 1 Answer