Move an actor in his local axis orientation using blueprint.
I would like to craete an asset that I can re-use in my level, it's an arrow.
I want to be able to place it where I want and rotate it to indicat a direction. The problem I have is I don't know how to move an actor along his local axis, the set location is always in world space or parent space, but not the actual actor space.
Just to make sure you understand, I want to animate it using a blueprint. I'm sure it's something easy to manage, but I can't figurite out :/
Many thanks !
asked Jun 27 '14 at 11:32 AM in Blueprint Scripting
The way I'd do this is to simply calculate a new position for my object based on the forward vector which points along the local X axis of the object.
Simply multiply the forward vector by the amount you want to move the object, this will return a vector for you, now add this vector to the current position of your object and you're done, you can now set your actors location to this new vector you just calculated. I've included an example that will move my object 4 units along it's local X axis every second (So it moves in the direction it is facing).
I hope this helps! If you have any further questions please let me know.
Nice solution using vectors to move locally. I did this for moving an actor using a timeline to move along time. Hope will useful for you.
answered Nov 29 '18 at 09:19 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here