Internal collision system acting weird after calling mesh.dispose()

I’ve exposed a retryCount variable. It’s 3 by default and increasing it to 4 solves the issue. It also solves some jittering when colliding.

So, in the PG, add this line :

playerMesh.collisionRetryCount = 4;

In the drawPlayerMesh function.

2 Likes