I’m new in Unity, and I need to make that an object changes its position when it collides (or approaches) with another object (eg a wall). I want to make it with the appropiate script, but I’m not sure how to do it.
I don’t know if I have to use a variable of Collision type or what.
Thanks for the help!