Flag to apply Rotation-Origin to normal model rotation

Moderator: GZDoom Developers

Post Reply
User avatar
InsanityBringer
Posts: 3386
Joined: Thu Jul 05, 2007 4:53 pm
Location: opening the forbidden box

Flag to apply Rotation-Origin to normal model rotation

Post by InsanityBringer »

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).
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
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

Post by Graf Zahl »

The operations are correctly applied, so no worries about that. That's precisely how an offset rotation needs to be handled.
User avatar
Nash
 
 
Posts: 17433
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Flag to apply Rotation-Origin to normal model rotation

Post by Nash »

This was already merged
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”