Camera Relative Movement With Rigidbody.AddForce

//Movement
move = new Vector3(Input.GetAxis(“Horizontal”), 0, Input.GetAxis(“Vertical”));
rigidbody.AddForce(move.normalized * currentSpeed);
This is my code for my players movement. I’ve been searching for answers to this but I can’t find any that work with rigidbody.AddForce.

I just want the x and z axes of my player movement to be based on the cameras x and z, but I don’t know how to do this. Pretty new to Unity and this is confusing for me since addforce is already local…

Try adding a character controller to the Player instead of a Rigidbody and then call CharacterController.Move(move) passing in your “move” vector.

Solved it just by using this instead
//Up
if (Input.GetAxis(“Vertical”) > 0.2f)
{
rigidbody.AddForce(Camera.main.transform.forward * currentSpeed);
}