• Advertisement
Sign in to follow this  

Mapping collision object with entities

This topic is 2370 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

[color=#1C2837][size=2]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

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement