mardi 30 juin 2015

Collision detection alghorithm for moving objects

Please anybody give me an idea. There are several (let's say ~20...) objects on screen that move and rotate about their center an each frame. When one object is rotates, his text hint rotates too. The problem is - if two hints come into collision, one of them must move at some angle so as not to collide with another hint. Please tell me which algorithm should be applied here?

Here is picture to understand it ;) -

Aucun commentaire:

Enregistrer un commentaire