Strange values local_normal on RigidBody _integrate_forces code

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By wojtasss

I had paddle KinematicBody2D and ball RigidBody2D and on ball in _integrate_forces i am detecting collision with paddle. I need to know if ball collide up front of paddle so I am getting state.get_local_normal(i) and sometimes it gives good values sometimes not. My paddle is only moving along y axis so local normal should always be (1, 0) (right direction) but sometimes it yield this and similar values (1, -0.000011) this is breaking my code because I need do samething when local_normal == Vector2.RIGHT but this doesn’t happen all time like it shoud because these error values.