The action name might be confusing you.The action takes a Vector3 value and shifts it towards a target Vector3 in a certain amount of time. How can you use it? Let's use the action to rotate a cube by 90 degrees.
1. Add an FSM to the cube.The cube we want to modify needs an FSM on it.
2. Add the Vector3 rotate towards actionAdd the action to the initial state. Assign a Vector3 variable
currentDirection to the "current direction" field. Set the target Direction to X0 Y90 Z0. This will rotate the cube 90 degrees on the up axis.
3. Set the cube's own rotation to the currentDirection variableNow to explain what vector3 rotate towards does: it updates the currendDirection variable we assigned until it matches the target direction. That did not apply the rotation to any object. To do this, we need the
Set Rotation action to apply the updating
currentDirection value to the cube's rotation. Since we are using Vector3's we need to use the Euler Angles slot so the rotation is set properly.
![](https://i.imgur.com/5mnBkLy.png)
Hope this helps!