because my code is not working I do not understand
public Rigidbody2D rb2d;
private Vector2 mov;
public float velocidad = 1000f;
public float moveHorizontal;
public float moveVertical;
void Update()
{
//creo un vector que guarda las cordenadas vertical y horizontal
moveHorizontal = Input.GetAxisRaw("horizontal");
moveVertical = Input.GetAxisRaw("vertical") * velocidad;
mov = new Vector2(moveHorizontal, moveVertical);
//usando las cordenadas de mi vector mi objeto las deberia usar para
//moverse
rb2d.velocity = mov * velocidad;
}
I'm using unity's rigibody 2d component and trying to move them from this, because my character does not move
thanks