Hi,
How do I have two objects bounce off each other when they collide? Is there a simple way to do this or do I need to build collision detection, if statements about the direction the objects were facing, etc.., I am using pathfinding and not bullets.
In other words, think bumper cars at a carnival. How do I create a slight bounce into the other direction for two objects? The objects use pathfinding to find each other and move. My thought is to create a condition for collision detection then build sub events based on the direction the objects were moving in when they collided, then adjust their X and/or Y values to move them slightly to the opposite direction.
Just wondering if there's an easier way or I am missing something. Well, both then. Haha
Thank you much