Use this space for questions related to what you're learning. For any other type of support (website, learning platform, payments, etc...) please get in touch using the contact form.
look actions in _process instead of _physics_processMarcJAs I recall the _physics_process is for actions that affects physics like movement and things that are more visual can use the _process function.
The look actions to rotate the camera were put in the process function, obviously rotating the camera affects visuals but in this case it also orients the movement actions so why not put it in the _physics_process instead of the _process function?21Feb. 19, 2025
When Starting With Non-Default Rotationheartfelt-wormBeautiful work as always, guys!
Just note that when I was following along with this part of the course and was redoing my character controller the ground movement relative to the camera was wrong when I used a custom spawning method. I replicated the issue by opening the lesson itself and rotating the player character in the level.
My solution is changing the line to use global rotation, like so:
input_direction_2d.rotated(-1.0 * _camera.global_rotation.y)
So that whatever the player's rotation may be via spawning in or just being rotated differently in the scene editor itself, the right directions are calculated now.40May. 29, 2025
Lesson Q&A
Use this space for questions related to what you're learning. For any other type of support (website, learning platform, payments, etc...) please get in touch using the contact form.