Updating location

Now that we have calculated the Transform, we can adjust the location of our target Actor by this value. We used delta time to make the Actor's speed and direction change consistent across frames, and as a consequence, we can simply use the Event Tick node to fire our move Action on every frame. Right-click on empty grid space, search for Event Tick, and place the node somewhere to the right of your Make Transform node.

To move the Actor, let's use the SetActorTransform node. Drag a wire from the execution pin of Event Tick to empty grid space, and search for Set Actor Transform. Place the node, and then connect the Return Value output pin on your Make Transform node to the New Transform input pin on the SetActorTransform node, as shown here:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset