How does the controller pitch work with the character's forward vector?

Hi!

When adding the Add Controller Pitch Input to the blueprint and enabling Use Controller Rotation Pitch on the character, I had expected this to mess up the forward movement: if I my character rotates upwards, then the forward vector (should) rotate(s) upwards as well, meaning the character would fly into the sky when looking up and moving forward. However, the character stayed on the ground! How does this work?

Thank you in advance! Enjoying the course so far.

Hello Liampie,

Your character probably would fly if you disabled gravity in its character movement component.

Hi Tuomo_T, thank you for your reply!

I’ve disabled gravity, but my character does not fly off! Could it be that Get Actor Forward Vector somehow doesn’t take the pitch into account?

It certainly does, but maybe I didn’t have it correct on how to enable the ability to fly. The Character Movement component has different movement modes that might allow it to behave differently even if you disable gravity.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms