UE realizes the automatic generation of navigation splines and the automatic navigation roaming function of characters

1. Achieve goals

UE performs path planning based on its own pathfinding nodes, vividly navigates splines, and realizes the automatic navigation roaming function of characters. The GIF animation is as follows.

insert image description here

2. Implementation process

The specific implementation process can be divided into four steps: first, set the navigation related settings for the project; second, find the navigation path points to generate the navigation spline; third, use the cable component to display the navigation route; finally, the characters walk along the spline .

2.1 Related Settings

(1) First modify the project settings to dynamically generate the navigation mesh at runtime

insert image description here

(2) addNavMesh

おすすめ

転載: blog.csdn.net/weixin_45782925/article/details/128822530