Sender vs. Recipient for Orx physics events

edited October 2011 in Help request
When an orxEVENT_TYPE_PHYSICS event occurs, e.g. a CONTACT add event, how exactly is it determined who is hSender and who is hReceipient?



  • edited October 2011
    The choice is made by Box2D, which calls them A & B, and orx simply stores A in the hSender and B in the hReceiver.

    So the actual terms of Sender/Receiver might bring confusion.
  • edited October 2011
    I see. So which object is hSender and which is hRecipient is arbitrary, then? That would be consistent with my observations.

    It might help others to add a note to Doxygen.

    Thanks for the response!
  • edited October 2011
    Good idea, I'll add that soon.

    And yes, my guess is that it depends on the actual object's creation order but I haven't gone into Box2D's code to verify that so it might be completely wrong! :)
Sign In or Register to comment.