Breaking down our goal

Now that we have made our target moveable, we are ready to set up Blueprints that tell the Cylinder how to move. In order to move an object, we need three pieces of data:

  • Where the Cylinder currently is
  • What direction it is supposed to move in
  • How fast it is supposed to move in that direction

To understand where the object currently is, we need to get some information about the world itself. Specifically, what are the coordinates of the Cylinder in the world? The speed and direction are the values we are providing to the Blueprint, but some calculations are necessary to turn those values into information that the Blueprint can use to move the object.

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

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