Player vibrating when falling

Hey,

I’m trying to make a game where the player falls down. But it keeps shaking. It’s really annoying and i can’t find a fix :confused:

if (Input.GetKeyDown(KeyCode.Space))
{
GetComponent().AddForce(Vector2.up * force );
}

I use RigidBody2D.
and a Box Collider.
What can possibly be wrong? The sprite is perfectly round.

Hi @Highbuddy!

The only answer i can think of is a problem i found when making my own game.

I dont know how you “fall”. If you actually falling and degrading one of the axes, then i think the problem you get is some positioning calculation inaccuracy. If you go far from the 0,0,0 origo the numbers of yiour coordinates will grow larger and it will ba herder to measure you position with millimeter accuracy. I dont know how much you know about computer number handling, but i think thats the answer to your questions.

to fix this you could sty in the origo, and move the scene instead what your player in. Like the background in the old movies. that should fix the problem.

Good luck finding the solution!