Page 1 of 1

colliderA is sender always?

Posted: Mon Jul 13, 2009 4:32 pm
by imtrobin
Hi

I just to to confirm if colliderA is always the sender. If not, I think it should be since most likely we need to do the test in the event callback.

Re: colliderA is sender always?

Posted: Mon Jul 13, 2009 4:37 pm
by Norbo
ColliderA is the 'first' entity of the pair as determined by the broadphase, and the broadphase does not take into account events. So no, colliderA is not always the sender.

I'll see what I can do to make the event testing a little less redundant, but it probably won't make it into v0.10.0.

Re: colliderA is sender always?

Posted: Mon Jul 13, 2009 11:49 pm
by Norbo
Turns out it made it into v0.10.0.

Relevant events now also have an "other" entity parameter which is whichever collider that isn't the sender.