Character Movement script not moving according to camera rotation? (Unity3D)

(deleted)

Hello,
There is two ways that comes to my mind.
The first has been mentioned:

If you don’t need any camera rotation, you can lock rotations on the camera with a rigidbody if I’m not mistaken.

The second one would be to add a script that would to that to you, for example in your Update function or using another tutorial such as this one according to your needs

https://www.youtube.com/watch?v=aLpixrPvlB8

Brackeys stuff is pretty good… it generally works.

Now if it’s not doing something it wasn’t originally designed for, that’s a separate issue.

If you are trying to cause controller input to always be relative to camera direction, that is done by using the heading of the camera and rotating the input by that amount.

You can see a fully functioning example in my proximity buttons package, or just see the code here:

https://github.com/kurtdekker/proximity_buttons/blob/master/proximity_buttons/Assets/DemoCameraRotatedControls/RotatedControlsPlayerController.cs

proximity_buttons is presently hosted at these locations:

https://bitbucket.org/kurtdekker/proximity_buttons

https://github.com/kurtdekker/proximity_buttons

https://gitlab.com/kurtdekker/proximity_buttons

https://sourceforge.net/projects/proximity-buttons/