https://github.com/coelckers/gzdoom/pull/429
I'm trying to verify some of the math here, since I have some slight concerns. I'm replicating the same operation Doomsday model rotation does, with a translate, rotation, and then a counter-translation. I am worried that the counter-translation would be done in the newly rotated coordinate space, but some tests don't seem to suggest this. Matching Offset and Rotation-Origin will make it rotate around Offset at all angles I can think of (I have a 6DOF movement implementation I'm using to test this).
Flag to apply Rotation-Origin to normal model rotation
Moderator: GZDoom Developers
- InsanityBringer
- Posts: 3386
- Joined: Thu Jul 05, 2007 4:53 pm
- Location: opening the forbidden box
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49056
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Flag to apply Rotation-Origin to normal model rotation
The operations are correctly applied, so no worries about that. That's precisely how an offset rotation needs to be handled.
Re: Flag to apply Rotation-Origin to normal model rotation
This was already merged