- Home /
Inconsistent 2D collision detection since 5.2.3
I made a test project to try to fix this bug but no luck so far.
This is a screenshot from the test project, the ball is bouncing around with this script :
void OnCollisionEnter2D (Collision2D other)
{
Debug.Log(gameObject.name + " detected a collision with " + other.gameObject.name + " at : " + Time.time);
}
But I'm only getting a log message every ~5 collisions.
I tried messing with Fixed TimeStep and Max Allowed TimeStep but it only works with low values (0.001 for Fixed TimeStep and 0.02 for Max Allowed TimeStep), which cause performance issues and other bugs.
Anyone knows what could be causing this ?
Note: My computer crashed whiel updating Unity yesterday, I tried completely uninstalling and reinstalling Unity but the bug persists. This bug did not occur before the update.
@username Interesting. All of the collision in our project died when I upgraded to 5.2.3. After playing around with it for a short while I ended up reverting.
We have the same problem, the OnTriggerEnter2D, OntriggerStay2D doesnt call. With the same version