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"

RInterpto never reaches target rotation


I am trying to rotate my Character using FMath::RInterpTo:

Controller->SetControlRotation(FMath::RInterpTo(Controller->GetControlRotation(), targetRotation, deltaSeconds, 2.0f));

TargetRotation.Yaw is set to 90, but the Interpolation will always stop at 89.99. Is this to be expected ort am I doing something wrong?

Product Version: Not Selected
more ▼

asked Aug 22 '14 at 03:46 PM in C++ Programming

avatar image

103 20 26 48

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

1 answer: sort voted first

I believe that's expected. If you notice the == compare operator for rotators has a tolerance pin to handle the tiny wiggle factor that can always arise when dealing with them.

more ▼

answered Jan 20 '15 at 11:23 PM

avatar image

691 26 86 61

(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