0 votes

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.

Godot version 3.2.3
in Engine by (26 points)

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.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.