Can i get referance or pointer to UCharacterMovementComponent in c++

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();

1 Like