- Home /
Rigidbodies not working correctly
I have a simple game where there are several towers of stacked blocks. The main character is a simple ball that's supposed to crash into those blocks and knock everything over. It's basically a physics playground. I originally developed the game on a relatively low power computer and the collisions worked fine and the towers would topple. However, when I run the game on a modern, fast computer, the collisions are detected, but nothing happens when I collide into the tower of blocks. None of the settings have been changed. Why are the physics varying between computers of different speeds?
Answer by immersiveGamer · Jan 26, 2015 at 03:29 AM
You problem is probably that of moving the ball in Update instead of FixedUpdate. Since your new computer is more powerful it is calling Update more times. This can cause the ball to then slip through the colliders. FixedUpdate (as it's name implies) is updated at a fixed interval while Update is called as fast as it can (each frame) meaning if it is faster than fixed update some physics won't detect properly. Try putting your ball movement into that and see if it works. That or try moving your ball with physics (forces and such) instead of moving the ball directly.
The balls collisions aren't calculated in Update() though. I'm purely relying on the rigidbodies and colliders to handle all of the physics. On faster computers, the ball doesn't appear to be clipping through other objects either. It just stops when it collides into an object. Switching to fixedUpdated makes the game very jittery too.
So you aren't using transform.Translate or transform.position to move the ball? I still feel like the problem is with moving that ball. If you don't $$anonymous$$d posting the code on which moves the ball. If it isn't that then two other options. $$anonymous$$ight be how the forces are being calculated. And two, is this an old project that you imported into a new version of unity? $$anonymous$$ight be some problems with that.
Your answer
![](https://koobas.hobune.stream/wayback/20220613181532im_/https://answers.unity.com/themes/thub/images/avi.jpg)