Translate() and rigidbodies don't go well together, and I assume the first script is on a game object with a rigidbody component. The physics simulation is fighting your translation and that causes the shaking.
Controlling rigidbodies is a bit tricky. Forces are the ideal way to control rigidbodies, but so far I'm finding that you can safely alter the rigidbody.velocity as well. Take that with a pinch of salt though, it may have situations I'm unaware at the moment that could present problems when altering rb's velocity directly.
↧