-
Notifications
You must be signed in to change notification settings - Fork 24
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
Wrong position for transformation #560
Comments
I've run into this problem before too. But is this more of a wrong position, or more of a it-doesn't-work-as-expected problem?? I'm wondering this myself. Even when I recently added the ability to set the sweep, I ran into this. Also, I ran into the gotcha of having to set |
I'm not sure either. I really have to emphasise that when I filed these issues I was almost completely blind to how things logically should work; I was solely looking at how I can recreate an exact copy of a serialized world, and I just found I had to change this function getting |
I'm fairly certain that changing it to |
Some notes on this, at least for myself:
So would it be more consistent for I'm gonna try this and see what unit testing reveals. |
I've merged in changes now to the master branch to address this. Closing this assuming that it does. Please let me know though either way. Thanks! |
I'm testing this out now and I'm having a small issue with it. I removed the calls to
UseLocation
andUseAngle
and replaced them withUseSweep
. However, the resulting body doesn't have the same location, or "m_xf
", as the one I serialized it from. It seems that the value ofm_xf
is set from thepos0
from the sweep, done from theGetTransformation
here:when the value of
x_mf
in the old body is the value ofpos1
of the sweep. And I can't callUseLocation
to fix this, because then I will loose thepos0
from the sweep.I also had to set
resetMassData
to false, because otherwise I will also loose thepos0
from the sweep, but I guess I always have to avoid this function if I want an exact copy of a body?Originally posted by @opera-aberglund in #549 (comment)
The text was updated successfully, but these errors were encountered: