How to Get position and rotation from an arrow?

Hello.

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?

Thanks

116568-teleport+bug.png

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 :slight_smile:

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:

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?)

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.