- Home /
Question by
milmalho · Jun 04, 2020 at 03:38 PM ·
scripting problemmovementbeginnerfirst-person-controller
How do you force the player to look forward/toward an object?
My first person game involves vaulting over fences/walls. I have everything working but can't figure out how to force the player to look forward after hitting space to vault (so the player doesn't vault along the wall rather than over). I tried LookAt() but that didn't work as intended. I can't figure out how to get RotateTowards to work. Any help is appreciated. I can supply code if needed as well.
Comment