Quantcast
WoWInterface - View Single Post - Show frost mage icicle as part of UI
View Single Post
11-16-18, 10:30 AM   #12
Ethly
A Fallenroot Satyr
Join Date: Mar 2018
Posts: 23
Originally Posted by Xrystal View Post
In that case you want to mimic how you do that. Create a model of the snowflake and use the same code you use to rotate the creature models to rotate the snowflake. But I did think the model rotatation was only in the dressing room image and not in 3D world. But I could be wrong.
Are you suggesting to extract model file from game data and somehow add it into my addon as a separate model? I have no idea how to do that, honestly. Never even saw addon with custom 3D model, I thought that addons can only use built-in models.

Originally Posted by Xrystal View Post
Have you looked at the animation functionality to see how you apply the rotations?
Thanks for suggestion, I tried it and it doesn't seem to work. Here's my code:
Code:
local ag = frame:CreateAnimationGroup();
local a = ag:CreateAnimation("Rotation");
a:SetDegrees(60);
a:Play();
Actually there's remark at https://wow.gamepedia.com/API_Animat...reateAnimation "It appears that all animations involving moving a PlayerModel frame will fail silently. Alpha animations are the only animation type which will have any effect on these frames.".

I also tried to create parent frame for model frame and rotate it. It rotated, but model frame inside did not rotate.
  Reply With Quote