So I have been working on a game, where you can controll multiple characters. The problem is, when I order a character to move elsewhere, and another character is in the way, he won’t detect it, and bumps into. My solution is using OnCollision, and if he collided with another character, he moves away from it. But isn’t there an easier way to do this?
(sorry for bad english)
The common way is that you are mentioned above.
Of course, you can use Sensor to search characters near by, and then check their distance.
However, physics system, which usually implement Octree or another spatial splitting algorithm, is efficient in general.