How can i make my character go right and left? It only moves up and down. The Rigidbody is kinematic and I want to move him in a plane. Thanks!
P.S. I’m very new to this.
void FixedUpdate()
{
float h = Input.GetAxis(“Horizontal”);
rb.MovePosition(transform.position + transform.right * h * speed);
float v = Input.GetAxis("Vertical");
rb.MovePosition(transform.position + transform.up * v * speed);
}
}