
- Версия Unreal Engine
- 5.1
Have your vehicles use path-finding, with nicely curved and smooth trajectories.
This plug-in adds components that you can add to your assets to make them able to follow navigation pathes from path-finding system by tracing smooth splines as trajectories to follow along the path points. It will also allow you to limit their rotation speed, making them slow down in the turns and accelerate in straight lines. Finally, the SplineMoveTo task will allow you to set the final orientation of the trajectory.
Its main component is SplinePathFollowingComponent is a component that will replace the PathFollowingComponent of your AI Controller. It will trace a spline using the path points given by the path-finding system and will give the right input to movevement compoennts to follow it.
This may be used either with the included movement components and Move AI task or with your own.
The whole plug-in is coded in C++ but is both usable in blueprint-only projects, and delivered with fully documented source code and adjustable / modifiable for C++ project.
Technical Details
Features:- Spline tracing according to navigation path
- Path-following with limited rotation speed (in degrees per seconds), both position-based and acceleration-based
- MoveTo AI Task with expected final rotation
- This plug-in adds a SplinePathFollowingComponent and SplineMovementComponent classes that will trace a spline using the path points given by the path-finding system and that will follow it. And a "SplineMoveTo" behavior tree task that allows to use it.
- There are two possible movement components (one position-based, one acceleration based). Both have three characteristics : max speed (uu per seconds), acceleration (uu per seconds square) and maximum rotation speed (degrees per seconds) and it will follow the spline the fastest it can respecting these constraints. This is a position-based movement component.
- The "SplineMoveTo" BT task is basically a move to task that also allows to define the desired final rotation to achieve. The spline trajectory will be adjusted to maneuver and arrive to destination from the correct direction.
Number of C++ Classes: 5
Network Replicated: No