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"

Rotation Values Locked between -180 and 180?

Hey all.

I have an issue with what appears to be Ue4's built in way of calculating direction. I have an actor that rotates in the Yaw. However, the issue arises when Ue4 Always makes sure my Rotation values are between -180 degrees and 180 degrees, when I actually need it to keep going.

For example, I need my controller to reach 180 degrees, on to 190, and then possibly on to infinity. But the engine is preventing me from doing this by looping back to -180, when I reach the threshold that is 180 degrees, and vice versa.

Is there a way to revert to the system of having true values? Thanks!

Product Version: UE 4.16
more ▼

asked Dec 16 '17 at 04:53 PM in Blueprint Scripting

avatar image

173 8 16 19

avatar image Adam Kareem Aug 29 '18 at 06:10 PM

Hmm, how are you updating the rotation? Are you using "Add World Rotation" or "Set Actor Rotation" nodes? And how are you calculating the angle?

The issue may have something to do with the difference between "Euler Angles" and "Quarternions." I had a similar issue where if I used the float value for an angle, it the rotation woudln't work BUT when I used like "Make Rotator" or "Rinterp to" then he would keep rotating.

avatar image Raxs_Slayer Aug 29 '18 at 07:04 PM

Hello. I was using set rotation and a lerp node to seamlessly blend the transition. This quirk of Ue4 has completely prevented me for coming up with a solution to this particular method, so i instead completely rebuilt it using a different system and it works fine. This problem seems hard-wired into Ue4, so all I could really do was work around it.

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

0 answers: sort voted first
Be the first one to answer this question
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