Hi im trying to develop a generic 2d collision system. The system should inform if a collision took place and separate the collision objects(rectangle or circle).
On the other hand i have my game objects,that have a collision objects (composition). Now the problem comes when a collision take palace and i have to know with which game object im colliding, i know the collision object but not the owner(game object).
I could do something dirty and add information about the owner to the collision object but that makes the collision system dependent of the game implementation. I dont know how physics engine solve this problem but i think when you use one you have the same problem of not knowing who owns the collision object.
Any help would be great
Mapping collision object with entities
2 replies to this topic