Sliding door opens on Global Y-axis only, need to open on Local Y-axis
Hi Everyone, So I followed a tutorial on Unreal's Youtube page showing how to make a door blueprint. (https://www.youtube.com/watch?v=d2Ua6ncLcVY∈dex=22&list=PLZlv_N0_O1gaCL2XjKluO7N2Pmmw9pvhE)
Now here's what mine looks like:
Now the problem is that it only moves on the global Y-axis whereas I need it to move on it's Local Y-axis so I can rotate it and place it anywhere and have it work the same. I hope this can be fixed, any help at all is appreciated. Thanks everyone! -Jordan
There are several ways to do this.
The first is to make the door a component and use "Add/Set Relative Location" to move it, which will move the door relative to the actor.
The second is to take the actor's forward/right vector and multiply it by how many units you want to move it, then add it to the actor's world position.
answered Jun 02 '15 at 03:06 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here