Hello I would ask you about getting UCharacterMovementComponent in c++. Because I need a velocity of character .I did example code below and this didn’t work. Can Somone explain me why that code didn’t work or tell me how get velocity of character. If any sentence was understandable I would apologise for my bad english.
Your code seems okay, I have tested it and it works just fine.
Alternatively you can just use GetVelocity() in your character code, I believe it will give you the same result as GetCharacterMovement()->GetLastUpdateVelocity();