x

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"

Find look at rotation doesnt work right.

Heya! I have build an item that circle around the player. What i am trying to do is that the item would constantly rotate towards player while circling. I tried to use "find look at rotation" but it doesnt work correctly. This is what happens.

alt text alt text

As you can see the item kinda flips itself when it goes other side of the player. It should constantly rotate looking player without flipping or anything.

Help would be great!

This is my blueprint for the look at part alt text

Product Version: Not Selected
Tags:
one.png (817.9 kB)
two.png (817.5 kB)
three.png (205.8 kB)
more ▼

asked Dec 21 '14 at 06:40 PM in Blueprint Scripting

avatar image

Frisco
48 9 17 20

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

1 answer: sort voted first

Hi Frisco,

Find look at rotation works right. It is just not, what you are looking for. I propose to you next formula:

 OffsetVector = Rotator(0,RotatedAngle(Speed, Time),0).ToVector();
 ItemLocation = PawnLocation + OffsetVector;

Blueprint realization: alt text

Hope it helps!

rotated item.png (201.1 kB)
more ▼

answered Dec 22 '14 at 01:58 PM

avatar image

Gleb.Bulgakov
1.8k 76 19 143

avatar image Frisco Dec 22 '14 at 02:36 PM

I cant believe it! It works perfectly now! Thank you my man! I've been struggling all night with this. Aah, finally. Thanks. You are life saver.

Too bad i suck with math. It would be so much easier to program.

(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