- Home /
Ball rolling across boxes randomly jumping
Hi
I have a 2d sidescrolling game where a ball rolls across a set of blocks. I made sure every single one is perfectly aligned, and there are no holes between them along the x-axis. I even tried to overlap the colliders, but my ball seems to be randomly jumping every now and then when it crosses two colliders. What could be the cause of this, and how do i fix it?
Answer by MarkFinn · Oct 19, 2012 at 02:57 AM
I ran into the same issue a few versions back and never did find an ideal solution.
For our project we were using procedurally generated levels and the best solution we managed was removing colliders from individual objects and create a single "overall" collider as needed.
I have no problems when it's all one continous collider, but I am doing the exact thing you're describing.
Someone in another question I asked related to my game told me to use a Character Controller ins$$anonymous$$d, which would both make it easier for me to control gravity vs the rate of which my ball is slowing down when rolling, AND remove the annoying jitter. Apparently rigidbodies is a no go :p