Originally Posted by semlar
I only skimmed over that giant block of text they wrote because I'm practically illiterate, but if I understand the gist of the problem they can't scale the model properly because they don't know what it is since blizzard removed GetModel, which is absurd because they have the unitID and can get the race from that.
|
How is that gonna help on a totally random model i want to draw ont he screen? Also every model has different camera postions, i just want to get the proper values to manipulate the camera angles further.
Lua Code:
function GetBaseCameraTarget(model)
local modelfile = model:GetModel()
if modelfile and modelfile ~= "" then
local tempmodel = CreateFrame("PlayerModel", nil, UIParent)
tempmodel:SetModel(modelfile)
tempmodel:SetCustomCamera(1)
local x, y, z = tempmodel:GetCameraTarget()
tempmodel:ClearModel()
return x, y, z
end
end