colliderA is sender always?

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
imtrobin
Posts: 101
Joined: Thu Jun 11, 2009 3:03 am

colliderA is sender always?

Post 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.
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: colliderA is sender always?

Post 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.
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: colliderA is sender always?

Post 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.
Post Reply