Pawns have a movement component but I think you intended to say “CharacterMovementComponent”? I actually want to avoid the character class all together. I am currently looking though the CharacterMovementComponent and I think I have found where the “magic” is happening. I think the important parts are ProjectLocationFromNavmesh and PhysNavWalking.
Any tips are greatly appreciated.
What I know so far:
SimpleMoveToLocation will call RequestMove on the PathFollwingComponent and it sets the status to “moving”. The PathFollwingComponent calls FollowPathSegment every frame if the status is “moving”.
FollowPathSegment calculates the velocity like this: