Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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: alt text

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

Product Version: UE 4.7
capture.png (136.6 kB)
more ▼

asked May 31 '15 at 09:04 AM in Blueprint Scripting

avatar image

30 2 5 8

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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.

more ▼

answered Jun 02 '15 at 03:06 AM

avatar image

Master Noob
55 4 9 12

avatar image Captain-Lens-Flares Jun 03 '15 at 07:54 AM

Hey man, thanks for the help. Sadly it didn't work. The first method yielded the same results as before. The second method almost worked however it only moved on the object's X-axis, heres what my blueprint looked like for the second method: alt text

Am I doing something wrong? Thanks, -Jordan

capture.png (255.1 kB)
avatar image Enlo Jun 03 '15 at 08:47 AM

As the docs of Get Forward Vector tells you, returns the X direction of this actor in world space. You want to use Get Actor Right Vector, which returns the Y

avatar image Captain-Lens-Flares Jun 03 '15 at 09:08 AM

Okay so that worked! However now for the worst part. It isn't smooth. It ends really sharply, and on top of that it doesnt go backwards. whenever the timeline reverses it just goes in the same direction except faster. Also it doesnt move in Units, I gave it a value of 1 in the float output however it goes like 200 units. Otherwise it always goes on the y-axis! :D

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question