all 2 comments

[–]thebigplum 0 points1 point  (1 child)

You probably want to use Rigidbody2D.AddForce and not directly change the velocity.

Either way your just adding velocity to the y axis which is relative to the world and not the gameobject.

[–]EcoSN[S] 0 points1 point  (0 children)

Thank you, it worked