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"

How to Get position and rotation from an arrow?


I'm trying to create a very simple Portal Like gate, It works ok, but I'm having a hard time trying to set the rotation of the player.

I created an arrow on target portal gate, and what I did, is to get arrow's world location to be teleported, but I can't find how to change orientation of the player, to aim the direction of the arrow.

How can I do this? I tried forward vector also, but didn't work, can someone explain with an example?


alt text

Product Version: UE 4.14
teleport bug.png (98.7 kB)
more ▼

asked Nov 27 '16 at 08:24 PM in Blueprint Scripting

avatar image

122 8 14 21

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

I just learned solution for this.

When rotation is needed, Usually you need to get it from Controll Rotation, not the actor or component rotation.

That did the trick.

more ▼

answered Dec 06 '18 at 03:29 PM

avatar image

122 8 14 21

(comments are locked)
10|2000 characters needed characters left

Try it with "Get relative Transform" instead of "GetWorldRotation" With wrold Rotation u are reffering to the SceneComponent in order to your Portal Base Salida and not the arrow...

On GetRealtiveTransform u can click with ur right mouse button and than choose split struct pin to get Location and Rotation

hope that helps :)

more ▼

answered Nov 27 '16 at 09:25 PM

avatar image

44 2 5 9

avatar image leofucci Nov 27 '16 at 10:52 PM

Hi, first of all thanks for the help.

Didn't work but at least your explanation helps to understand how this works, i'm very rocky on UE.

I tried this:

alt text

but still no luck, in fact the debug shows FALSE on Return Result and also, Value Location seems to be incorrect, value looks like the position of the arrow inside the scene, and I want the position of the arrow (and rotation) in the map (GetWorldLocation is for that?)

bug intento 1.png (130.4 kB)
(comments are locked)
10|2000 characters needed characters left
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