Mapping collision object with entities,
Members - Reputation: 100
Posted 26 July 2011 - 04:51 PM
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