Here is the code snippet that causes the object to move:
Vector3 InputVector = joystick.GetInputVector();
this.gameObject.transform.position += InputVector * 3 * Time.deltaTime;
The problem is that when turning the character (if I turned it 45 degrees to transform.rotation.x for example) and the joystick moves the character forward, it goes sideways, that is the direction in which he was turned initially, I would like to achieve moving forward (left, right, backward) relative to the camera, that is, if the character is facing to the South, and I pull the joystick forward to move character to South.
What tell about this?
Thank you all in advance. I apologize for the wording of the question, I am still very green.