WoW:API Model SetFacing: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (Pi!)
({{widgetmethod}})
Line 1: Line 1:
{{widgetmethod}}
  <center>'''SetFacing''' ''-Documentation by DerGhulbus-''</center>
  <center>'''SetFacing''' ''-Documentation by DerGhulbus-''</center>


Line 19: Line 21:


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.
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.
----
{{Template:WoW API}}

Revision as of 12:16, 10 June 2006

Widget API ← Model < SetFacing

SetFacing -Documentation by DerGhulbus-

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.