Precision of collisions (how to improve?)


I made some minimechanism of flat golf game, but problem is that from time to time ball flies through the ground. Ground has “mesh” type shape for colissions. Ball is “Sphere” type.
Changing properties of rigid body world like “Steps per second” or "“Solver iterations” doesnt change situation. Is there any other workaround for precision of simulation?
Here is video showing problem, video has low framerate thats why movement looks not very fluent.

Looks like the problem appears on big angles (close to perpendicular), so its kind of “tunelling” effect :face_with_raised_eyebrow:


Please update this thread if you find a solution, I will try as well.


I checked with BGE Bullet and its the same result, this kind of small ball quite often is tunelling through wall/terrain.
I think it needs some special implementation like one of solutions on this page:

Maybe we need to have this solution as option hardcoded somehow in Armory?


Still fighting with tunelling… Made some setup improving things but tunelling still happens (significantly less often)

Some things here are still opened for tweaks.

here you can see how it works in sketch of golf game:


Here is .blend file to test tunelling, without nodes ball disappears quite fast - after one or 2 impulses. With this nodes setup its better but still some strange behaviour appears. Maybe someone can find solution.antitunelling.blend (795.7 KB)


as you seem to use a simple parabolic trajectory (without disturbing factors like wind, slice/fade, etc…) and your surfaces are simple, determining the point of impact on the ground seems easy and can be enough to define the final point of the ball trajectory upon hitting without using Armory physics if deficient. A specialized math node could be sufficient to do the job.


I thought physics engine is enough specialized for that kind of movements :slight_smile:
Yeah, I understand what you mean Didier, for snooker game or just canon shooter this simple math model could be enough but I would like to have more fancy movement finally. I like this small bouncing of ball on the end, bit random effect of rolling, and so on. And for sure wind is an option.