-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
280: Drag Rotate doesn't handle rotation of 10800 degrees #570
Comments
I have a wheel that is -1440 to +1440 for a total of 2880 degrees and get this same error. |
Since this is an |
not really. It allows it to export...but it creates keys like this:
Which seems to be about a tiny degree of rotation in the sim... not sure why. Also it exports if I set it to -90 to 90...and I manually edit the obj text to look like this:
|
Edited code above because my test case did 1440 to -1441...I modified it to be your suggested 1441 to -1440 just in case that made a difference...it did not. I think it has something to do with range not start == finish. Because it like -90 to 90 just fine. |
For the record here's the whole block if I export it with 90 to -90.
|
After conversation with Ben he says the best fix is to just make a special case: If you're about to go from Euler to AA, and you will only have one reference axis (guaranteed already by previous checks), just use the Euler values instead. |
I'm greatly hoping this is a good fix. For some reason my test airplane in X-Plane wouldn't recognize that they were drag_rotates but, the unit test suite passes, so, idk. |
@lehthanis Did beta.3 fix your problem? |
A user showed me a case of attempting to have a wheel that can revolve 30 times - a rotation between 0 and 10800 degrees.
One part of the autocorrection algorithm knows that this is a real rotation, but when changing this to AA, it gets simplified (I think that's what's going on) and another part of the code says `assert False, "how did we get here?" - it sees it as a no rotation
Right now for them this is a hand edit operation that takes 10 seconds to fix, but, this shouldn't be possible
The text was updated successfully, but these errors were encountered: