How to get the position front right of a pawn?
I am trying to get the position of a pawn, but in front of and to the left of him. What I am trying to do with the attached code is get the forward direction, rotate 45 degrees left, and then move out a little bit. Instead, this outputs the vector (300, 300, 300). Why isn't what I created doing what I described?
asked Jun 13 '18 at 06:28 PM in Blueprint Scripting
Once you rotate your forward vector by 45 degrees you want to multiply 300 into the result instead of adding 300. Then add the result of that multiplication to the pawn's position.
ForwardVector -> Rotate by 45 degrees -> Multiply by 300 -> Add to Pawn's position
answered Jun 13 '18 at 07:02 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here