Vehicle Pathfinding - Where To Start?
I would like to implement NavMesh pathfinding for vehicles in unreal engine as i need it for my game and I need some help with where to start. I am currently looking at the AIController, PathFollowingComponent and NavMovementComponent.
I would like to know which class i would need to override/inherit from and which functions are relevant for change the movement behaviour for nav agents.
Are there any unreal engine AI techies out there who could shed some light?
asked Mar 02 '16 at 09:43 AM in Using UE4
Okay, after roughly two days of scanning through the source code i have found the following:
UPathFollowingComponent::FollowPathSegment(float DeltaTime) - Is called from TickComponent (every frame) - Calculates target velocity - Calls UNavMovementComponent::RequestDirectMove
UNavMovementComponent::RequestDirectMove - Sets Super::Velocity, which is used to move the pawn
So can someone please confirm that overriding UNavMovementComponent::RequestDirectMove to steer towards the velocity vector passed by UPathFollowingComponent::FollowPathSegment is the correct way to implement basic vehicle pathfinding?
answered Mar 02 '16 at 12:43 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here