The ban on going beyond the edge collider
Hello. Give direction how to solve the following problem for me.
The green square in the figure is an object with a box colider which MUST be trigger (there are many reasons for exactly which trigger). And the black field near it is the edge colider. How to make the object can not go through this field ?.
I do not ask you to write me a script, I ask you to give me a direction where I could get information for solving this problem. Perhaps there is a ready engine (only free), maybe there is a video on YouTube (throw a link) or a topic on the forum.
Help me please. In advance it is bagadaren.
Your answer
Follow this Question
Related Questions
Could someone help me with my 2D game project? 0 Answers
Ragdoll Movement Script, Help! 0 Answers
How Do I stop AI Following player on the Y-axis? 0 Answers
Unity 2D 5.2.2 How can I aim with keys towards an object? 2 Answers
2d platformer physics 0 Answers