How GetMesh() is working?

Hi,
It`s just a begginers question!:slight_smile:
So
I have this

GetFollowCamera()->GetComponentRotation();

Its working fine but, when i want to get the mesh like this

GetMesh()->GetComponentRotation();

It`s not… So, whats the difference?

GetCharacterMovement() also not working this way :frowning:

Movement components are not scene components, they don’t have positional data as they don’t physically exist in the scene, it just extra code attached to actor. But Skeletal mesh component which GetMesh() returns is scene component and GetComponentRotation() should work. So what do you mean by “not working”? Since we can only guess

I included “GameFramework/CharacterMovementComponent.h” now its working. But the weid thing is i already tried it once it didnt work. But now it does.