– Introduction –
YOU CAN SKIP THIS. Essentially, pressing W makes your character go forward. Cool, but the way it moves “forward” means it moves “away from the camera”. If you are making a cool game where the camera is fixed and focuses on your character, let’s say you suddenly change camera positions, since you continue holding W, the character will make an awkward turn away from the camera since their movement is relative to it.
– Why is this information out here? –
Let’s say for some reason you want the character to move relative to the world when you press W or ASD. This basically means the character will move a constant direction in the robloxian space even if your camera moves anywhere.
– I HAVE FOUND THE SOLUTION –
After tiring digging and further research on the PlayerModule script (not really, it took like 2 minutes of looking), Line 18 of the BaseCharacterController, you will find this setting which presents itself very intuitively:
self.moveVectorIsCameraRelative = true
yep, that’s it. See ya.
– ADDITIONAL NOTES –
[] The ancestry of the script goes: Player > PlayerScripts > PlayerModule > ControlModule > BaseCharacterController
[] The PlayerModule will be hidden until the game is ran
[] The location of this setting may be subject to change in Roblox Updates, so don’t be discouraged if you don’t find it