Trajectory Generator - Event Graph {{ currentPage ? currentPage.title : "" }}

In order for the trajectory generator to work, the player input (or AI input) needs to be fed into the trajectory generator every frame or at specific time intervals (e.g. 30Hz).

Setting Trajectory Input

Below is a simple example of how to set the trajectory input on Tick.

Note: This is only an example, you don’t have to perform this on tick. It could be at certain time intervals (e.g. 30Hz) and the method of getting your input values can differ.

How you get your movement input and call this function is up to you and you may wish to do it differently.

Make the Trajectory Camera Relative

For player controlled characters, it will often be desirable to make the trajectory generate relative to the camera Yaw rotation. This is done by simply transforming the input vector relative to the camera yaw. Motion Symphony provides a utility function to perform this, but you could do it any way you like as an alternative.

Changing Trajectory Generator Settings At Runtime

It may be necessary at times to change settings on the trajectory generator like the ‘Max Speed’ or responsiveness values. The relevant settings are exposed to blueprint and can easily be changed at runtime as follows.

This example is shows a simple input based hold for walk and release for run. When walking the max speed is reduced to 200 and when running it is reset again to 400.

{{{ content }}}