• Content count

  • Joined

  • Last visited

Community Reputation

109 Neutral

About Elu

  • Rank
  1. Area overlapping

    Thank you Nathan, i too think it's something linked to collision detection... The situation i am modeling is: There's an EMP grenade with a certain effect range. And there are some silicon wafers with a certain shape. Now when the grenade explode it will trigger some effects on any wafer that have any amount of surface affected. Doing the standard CollDect that you suggested seem to me a little too inefficient, i am wondering if exist some way to say to a crowd of objects "hey anyone that have a toe in this area should do this" without checking for each one of them
  2. Area overlapping

    Good day everyone, first poster long time follower here, i have a sorta conceptual question. I have already searched the forums and found nothing so here it is: I have a 2D space identified by the typical X and Y axis on C++ float. There are multiple "entities" modeled as Entity class instances(the class have all the methods needed to manage the entity). The entity also have an "area" defined by some function(for now just circle and square) applied on the origin point of that entity, and they move. Now, when entity A and B's area overlaps i need to execute the A.somemethod(B) and B.somemethod(A), the problem is: I can't think of any method to do that, at least somewhat efficiently, but i know it can be done, if someone can spare some advice, i'll be grateful