Moving box using C++
Hi, I am not very familiar with using C++ on unreal engine. I have managed to create a static mesh using C++ now I want to make it move back and forth using C++. I am pretty sure it is simple task but i am just not experienced enough. Most of the help I found on the internet uses blueprints. A detailed guide with the associated commands would be much appreciated.
Thanks in advance!
asked Jan 09 '19 at 01:31 PM in C++ Programming
Store an offset alpha, update that on tick and use it to set the position. Calculate the position from a lerp between start and end points.
I've written an example in C++, though I haven't tested any of it, so you may need to fiddle with it. I recommend using Blueprints if you are a beginner with Unreal Engine or with programming. You can do much more with BP's faster as a beginner.
Also most Blueprint tutorials can be replicated in C++. All Blueprint functions link to a C++ function.
Follow this question
Once you sign in you will be able to subscribe for any updates here