My character follows camera direction. my issue is when i look at sky and walk or run my character goes up ! the same thing happen when i look down and walk back.
float moveHorizontal = Input.GetAxis("Horizontal");
float moveVertical = Input.GetAxis("Vertical");
movs = new Vector3(moveHorizontal, 0.0f, moveVertical);
movs = cam.TransformDirection(movs);
rb.AddForce(movs * speed);
float maxVelocity = 5f;
rb.velocity = Vector3.ClampMagnitude(rb.velocity, maxVelocity);
What I need is make it work normally. like GTA or GoW.