Widget API ← Model < SetFacing

Rotates the displayed model for the given angle in counter-clockwise direction

myModel:SetFacing(math.pi);    --rotates the model 180°

angle: the angle which you want to rotate specified in radians.



The rotation works like rotating your portrait in the CharacterFrame. Blizzard calculates the axis around which it rotates from the fixed coordinate system of the mesh-file, so you have no influence on this without changing the mesh-file itself.

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.