| Main Page | Recent changes | Edit this page | Page history Printable version | Disclaimers | Privacy policy | Not logged in Log in | Help

# Model rotation

From EDukeWiki

Categories: EDuke32 specific commands | Sprite manipulation

EDuke32 allows CON-definition of model replacement dynamic rotation for any actor with the members pitch and roll.

While the pitch is a rotation about the Y-axis (i.e. would make Duke on the above picture lean forward if given a positive value), the roll makes the model spin around the X-axis. The rotation center is the model center (rendered at the floor by Build) unless you offset it using mdxoff, mdyoff or mdzoff member. That's what would give a 256 roll of the player actor :

If you put a -8192 mdzoff before the rotation, the center of the model will be moved to the height of the crate on the right of the screen, and you'll get a rotation which might be more convenient to you :

Retrieved from "http://sc8-pr-shell1.sourceforge.net../../../m/o/d/Model_rotation.html"

This page has been accessed 147 times. This page was last modified 01:53, 7 November 2005 by Richard Gobeille. Based on work by Pierre-Loup Archambeaud Griffais. Content is available under SourceForge.

Main Page
Recent changes
Random page
EDuke32.com

Edit this page
Discuss this page
Page history
What links here
Related changes

Special pages
Bug reports