So i’m trying to create a game like ping-pong in 2d but i’m having some problems with the bars.
Bars were going down. I set the velocity at 0 and now bars are still going down but this time really slow.
This is the code i used to set velocity :
GetComponent.<Rigidbody2D>().velocity.y=0;