2 Models, 2 Rotations, 1 Actor - Possible?

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

2 Models, 2 Rotations, 1 Actor - Possible?

Post by Enjay »

Hmmm, only just realised that the title is reminiscent of a certain unsavoury meme... :?

Aaaanyway, is it possible to attach two models to one actor and have them rotate differently? I've tried this:

[spoiler]

Code: Select all

Model NJMegaSphere
{
   Path "models/pickups"
   Model 0 "NJMega1.md3"
   Skin 0 "NJMega1.png"

   Scale 1.2 1.2 1.2
   ZOffset 8
   ROTATING
   Rotation-Speed 1.0
   Rotation-Vector 0 1 0

   Path "models/pickups"
   Model 0 "NJMega1.md3"
   Skin 0 "NJMega1.png
   
   Scale 1.2 1.2 1.2
   ZOffset 8
   ROTATING
   Rotation-Speed 1.5
   Rotation-Vector 0 -1 0
   
   //Spawn
   FrameIndex MOD1 A 0 0
   FrameIndex MOD1 A 1 0
}
[/spoiler]

But (not particularly surprisingly) both models seem to take their rotation information from the second set of values.

For that matter, what about different scales, ZOffsets etc?
User avatar
Nash
Developer
Developer
Posts: 1226
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia
Contact:

Re: 2 Models, 2 Rotations, 1 Actor - Possible?

Post by Nash »

I've tried this before. It's just not possible with 1 actor. :(
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Re: 2 Models, 2 Rotations, 1 Actor - Possible?

Post by Enjay »

I suspected as much. Thanks for the reply.
Locked

Return to “GZDoom”