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"

MoveComponentTo Bug

Hi.

If an axis goes from -180 to 180 or vice versa via MoveComponentTo, the Component rotates into it the "long" way, This is kind of annoying when using MoveComponentTo with a Ledge Climbing System.

Product Version: Not Selected
Tags:
more ▼

asked Feb 14 '16 at 08:37 AM in Bug Reports

avatar image

Raildex_
512 18 37 62

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

2 answers: sort voted first

Not sure about that "fundamental shifts". It's just happening in MoveComponentTo for me.

Edit:

I got a workaround with Lerp(Rotator) I wonder why MoveComponentTo doesn't work, but Lerp does.

more ▼

answered Feb 18 '16 at 04:09 PM

avatar image

Raildex_
512 18 37 62

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

Hi Raildex_,

This is caused by Gimbal Lock. You can read more on Gimbal Lock here:

https://en.wikipedia.org/wiki/Gimbal_lock

To get around this, you will have to convert your rotators to quaternions, you can find more about Quaternions here:

https://en.wikipedia.org/wiki/Quaternion

more ▼

answered Feb 15 '16 at 08:23 PM

avatar image Raildex_ Feb 15 '16 at 09:28 PM

Its not a gimbal lock. I rotate yaw only. Pitch and Roll are untouched. And why does have a user need a work around for a problem the engine is causing?

avatar image Adam Davis STAFF Feb 16 '16 at 07:03 PM

Unfortunately this is not a workaround or a bug but expected behavior from rotators and how to best avoid that behavior. The behavior seen is technically not correct, however the calculations for rotations are done at a deep engine level. To alter them would require fundamental shifts in the entire engine, which is not something that is going to be done any time in the near future. Sadly, this means that rotators to quaternions is the most viable path to clean rotations in UE4.

(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