Sign In
·
Register
Categories
Discussions
Sign In
Sign In
·
Register
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Categories
1K
All Categories
400
General
261
General discussions
110
Projects - Tools
29
Website
630
Help
509
Help request
110
Bug report - Feature request
11
Releases
In this Discussion
October 2011
acksys
October 2011
iarwain
Home
›
Help request
Sender vs. Recipient for Orx physics events
acksys
October 2011
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?
Thanks.
Comments
iarwain
October 2011
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.
acksys
October 2011
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!
iarwain
October 2011
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.
▲
?
/
4
jump to page
of 1
▼
▲
Comments
So the actual terms of Sender/Receiver might bring confusion.
It might help others to add a note to Doxygen.
Thanks for the response!
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!