First person controller movement direction incorrect

I’ve googled it, but i can’t seem to find the problem.

Whenever I start the game, and use the controller, EDIT: the character appears to move relative to the x/y/z axis rather than where i’m looking/camera is facing. anyone got a solution?

(I’m using Unity’s first person controller btw)

I FOUND THE PROBLEM lol it turns out i had a mouse look script on the camera itself, and the character, i just removed the one on the camera and now it works fine lol thx for all ur help guys

Maybe you forgot to add a mouselook script to the controller for rotation on left right. Camera should only have up/dwn.

you need to add mouselook script to character and camera

You might wanna check your local or global camera settings.or reset the coordinates on the main camera axis located in the inspector.

Use

transform.forward

And not

Vector3.forward