Collision Created Event Handler
Posted: Mon Sep 09, 2013 3:17 pm
In one of my classes, we are making a game where you drive around a city gathering collectables. I am currently using the (entity.CollisionInformation.Events.DetectingInitialCollision += HandleCollision;) to put event handlers in the collectables, but I would like to switch out to the CollisionCreated event handler. It doesn't work the same way, I tried just switching out to CollisionCreated, but it doesn't like the HandleCollision method. Doesn't fit the signature. I can't figure out what signature the function needs from the metadata either.
public override void HandleCollision(EntityCollidable sender, Collidable other, CollidablePairHandler pair)
That's the signature used for the DetectingInitialCollision, but what signature do I use for CollisionCreated?
public override void HandleCollision(EntityCollidable sender, Collidable other, CollidablePairHandler pair)
That's the signature used for the DetectingInitialCollision, but what signature do I use for CollisionCreated?