- Home /
Inverse 2D Collider, is this possible?
Simple question. 2D colliders are meant to keep objects out from the boundary generally speaking. Suppose I want to create a 2D polygon collider with the intent of keeping the player inside, that is if the player steps outside the boundaries of the collider they bounce off as though hitting a wall.
Is there a way to do that or should I just make the collider a trigger, and write a script that says that objects that exit the trigger region have their velocities reversed to mimic the effects of what I want to do?
Comment