Wikia

WoWWiki

API Model SetFacing

Talk0
102,254pages on
this wiki
Revision as of 23:59, July 14, 2008 by Charibot (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)
Widget API


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

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

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

Returns
nil

Description

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.

Around Wikia's network

Random Wiki