InitialCollisionDetected fires more than CollisionEnded
Posted: Fri Feb 03, 2012 7:55 am
Hi,
I've been trying to fix an issue I'm having in my project where I have a collision detection shape that (similar to the fish tank demo in BEPU demos) and I have registered event handlers with the InitialCollisionDetected and CollisionEnded events on a . My objects are CompoundCollidables that are also used as EntityCollidables. The collision object calling the event is the collision volume that is tagged as NoSolver and moves around with another Entity.
Basically I'm finding that for each time InitialCollisionDetected, I am not getting a corresponding CollisionEnded event call. I'm guessing there are multiple reasons as to why this might be happening. I even tried to move it with the EntityMover helper, instead of directly setting the position of the collision volume to equal the entity it's following, but no cigar.
BTW, I also saw this post from a while back, but unfortunately didn't help me much:
viewtopic.php?f=4&t=1262&p=7658&hilit=c ... ents#p7658
Any insight would be very much appreciated.
Thanks.
I've been trying to fix an issue I'm having in my project where I have a collision detection shape that (similar to the fish tank demo in BEPU demos) and I have registered event handlers with the InitialCollisionDetected and CollisionEnded events on a . My objects are CompoundCollidables that are also used as EntityCollidables. The collision object calling the event is the collision volume that is tagged as NoSolver and moves around with another Entity.
Basically I'm finding that for each time InitialCollisionDetected, I am not getting a corresponding CollisionEnded event call. I'm guessing there are multiple reasons as to why this might be happening. I even tried to move it with the EntityMover helper, instead of directly setting the position of the collision volume to equal the entity it's following, but no cigar.
BTW, I also saw this post from a while back, but unfortunately didn't help me much:
viewtopic.php?f=4&t=1262&p=7658&hilit=c ... ents#p7658
Any insight would be very much appreciated.
Thanks.