I need help moving my circle, it is a “pill” in game (moderator: what does it even mean?).
I tried using RigidBody2D
and enable the z movement, so it spins but when i change direction, it still spins, that’s because the sprite is affected by the physics, but i want to do it by code. here’s the code of movement.
//Mocimiento
float h = Input.GetAxis( "Horizontal" );
rb2d.AddForce( Vector2.right * speed * h );