Unwanted dancing movement of sprites

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

When I move objects (Nodes2D, Sprites) with this code:

const MOVE_VECTOR: Vector2 = Vector2(-1, 0.577)

func _physics_process(delta: float) -> void:	
    translate(Global.speed * MOVE_VECTOR * delta)

and Global speed is low (e.g. 200) i can see small vertical movement of objects especially when they overlapping each other. I have no clue how to eliminate the effect.

I don’t understand what the problem is. Could you describe the “small vertical movements” more? It seems to me like you would expect some vertical movement since MOVE_VECTOR.y is 0.577.

Jayman2000 | 2021-03-01 00:17