Model Rotation
Moderator: Graf Zahl
- Slasher123
- Posts: 21
- Joined: Sun Jul 13, 2008 8:55
- Location: California
Model Rotation
Does the MODELDEF flag "ROTATING" take an argument that defines how fast it rotates? If not, I'll make a formal feature suggestion.
EDIT: Never mind, this seems to have already been suggested and closed, but it doesn't specify whether it was implemented or not...
EDIT: Never mind, this seems to have already been suggested and closed, but it doesn't specify whether it was implemented or not...
- Enjay
- Developer
- Posts: 4748
- Joined: Tue Aug 30, 2005 23:19
- Location: Scotland
- Contact:
rotation-speed certainly works (-ve numbers reverse the direction) because I've used it quite a bit. I can't remember if I have actually tried the other things but if one works, it's a fair bet the rest have at least been implemented and probably work too.Torr Samaho wrote:I added zoffset support to MODELDEF some time ago, it's definitely in GZDoom 1.0.29. Just add a "zoffset float" line to your MODELDEF.
And I just finished a first implementation of the customizable rotation:With this, you should be able to achieve the rotation you described.Code: Select all
- Made the model rotation customizable: rotation-speed float: Specify the speed of the rotation rotation-vector float float float: Specify the x, y and z component of the vector of the rotation rotation-center float float float: Specify the x, y and z coordinate of the center of the rotation (Defining rotation initializes the speed to 1, the vector to (0,1,0) and the center to (0,0,0))
- Slasher123
- Posts: 21
- Joined: Sun Jul 13, 2008 8:55
- Location: California
- Enjay
- Developer
- Posts: 4748
- Joined: Tue Aug 30, 2005 23:19
- Location: Scotland
- Contact:
- Slasher123
- Posts: 21
- Joined: Sun Jul 13, 2008 8:55
- Location: California
Because I don't know the information. If I did, I wouldn't have needed to ask. And in that situation, I would have been better suited to provide information on the wiki that I felt was missing. As it is, I don't feel qualified to go altering the wiki page on this subject.Enjay wrote:If you think "someone" should do it, why not do it yourself? That's the point of the Wiki. Just register for an account (easy) if you haven't already done so and dive in.
On another note, the rotating model now appears to be skipping. The best way to explain it is by watching the demo I recorded.
- Attachments
-
- ModelSkip.zip
- The pk3 and the demo file are included in this zip. The demo demonstrates the strange skipping.
- (242.52 KiB) Downloaded 152 times
- Enjay
- Developer
- Posts: 4748
- Joined: Tue Aug 30, 2005 23:19
- Location: Scotland
- Contact:
I only meant that now that you know the information you could do it. 
Anyway, I do see that skipping. I can't say I've noticed it on mine, but that doesn't mean it hasn't happened (on my models it will be less obvious because there are other things going on too (changes of shape and skin). I'll have to check.
Interestingly, I notice that all your planets skip at the same time, despite them having different speeds and even directions.

Anyway, I do see that skipping. I can't say I've noticed it on mine, but that doesn't mean it hasn't happened (on my models it will be less obvious because there are other things going on too (changes of shape and skin). I'll have to check.
Interestingly, I notice that all your planets skip at the same time, despite them having different speeds and even directions.
- Slasher123
- Posts: 21
- Joined: Sun Jul 13, 2008 8:55
- Location: California
- Enjay
- Developer
- Posts: 4748
- Joined: Tue Aug 30, 2005 23:19
- Location: Scotland
- Contact:
- Slasher123
- Posts: 21
- Joined: Sun Jul 13, 2008 8:55
- Location: California
- Enjay
- Developer
- Posts: 4748
- Joined: Tue Aug 30, 2005 23:19
- Location: Scotland
- Contact:
- Slasher123
- Posts: 21
- Joined: Sun Jul 13, 2008 8:55
- Location: California