Hello, I am working on game, where we use circles as collision bodies. They are fine, but for some objects they are not very useful (for instance 2x6 meters object). Circles are nice, because as the objects are moving towards waypoint and colliding between each other, they slide by the colliding object and continue to the waypoint.
So I started using oriented rectangles as collision bodies, which is a lot more realistic than the circles, but now the objects can stuck behind each other and stay there forever, which is not desirable.
As far as I know I can solve this problem by:
- implement dynamic pathfinding - this will be the best solution, but more challenging
- if unit is stuck behind another, it can slide to left or right (which is kind of a hack in my opinion)
- use capsules, instead of rectangles, but I am not sure if I will have the desired effect
Do you have any suggestions?