How to move an actor in a certain direction and velocity?
Hi, I would like to know how to set a Blueprint actor (in this case with a static mesh and a particle system) so the whole actor moves in a certain direction and at a certain velocity. I've tried MoveTo, Move To Actor, etc. but it's not moving at all, and I don't see how to control the velocity. If there were already tutorials or documentation on this I would not be asking this, it must be pretty simple.
Step 1 is that the static mesh actor must be set to Mobility Moveable, select your SMA and press F4 or look at the properties window if it is loaded already
Use the tick event of the level blueprint to incrementally move your mesh over time.
The amount you move per tick is the speed
Choose from the available actor move BP nodes to find the one you prefer for this purpose.
Ultimately you should move your BP setup into a function that you put on a timer
so that you can start and stop the continous movement whenever you want
The timer update frequency should be looping, and set to something like 0.01 seconds
Look up on this UDN for info on BP functions and timer functions in BP
Start playing around in the level blueprint where Tick Event is guaranteed to work
Hi, thanks a lot for that capture, I've understood many things analizing it. The fun fact, though, is that when using my own one, really similar to yours (mine is in the image below) the object rapidly becames smaller and smaller (and at the same time gets slower and slower) until it's invisible or destroyed somehow.
Do you know what might be making it lower down the velocity and the scale?
My custom variable are:
Hi, Rama, thanks for the information. The problem will be better shown in an image:
As you can see the controller node in "Simple Move to Location" is preventing the whole thing to work, I've tried linking it to "Get Instigator Controller" and to "Get Player Controller", but it doesn't work, in fact I don't know why this would require a controller as this is a Blueprint actor without controller.
Do you know how to solve this?
answered Mar 23 '14 at 09:21 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here