Author
Topic: CollisionEvent never called (Read 495 times)

Hi! I'm trying to detect a CollisionEvent but I just can't get it right.

I made a very simple project with two cubes colliding...the problem is that neither of the two CollisionEvents is called, am I missing something in the initialization of the Objects? Following is the test project:

A simple translate() just translates, but it doesn't check for collision by itself. The idea is to feed the actual translation vector into one of the collision methods and then use the resulting vector as the actual translation.

Great! thank you, I had already checked that example but I didn't understand that it was the CheckForCollisionEllipsoid function throwing the CollisionEvent.For reference this is the correct solution of my example: