The PairCreated event uses the following delegate type:
Code: Select all
public delegate void PairCreatedEventHandler<T>(T sender, BroadPhaseEntry other, NarrowPhasePair pair);
So, since the sender in this case is an EntityCollidable, you'd need to use (EntityCollidable, BroadPhaseEntry, NarrowPhasePair). If you want to get the entity associated with the EntityCollidable sender, check its Entity property. For more information about the distinction between BroadPhaseEntry/Collidable objects and Entity objects, check out the EntityConstructionDemo in the BEPUphysicsDemos.
All the different types are visible within the CollisionEventTypes.cs file. Also, Visual Studio has tools to
generate event handlers.