Lore archive · Warcraft Wiki, 2023 dump
API Model SetFacing
Last wiki revision 2023-08-19
Rotates the displayed model for the given angle in counter-clockwise direction. Model:SetFacing(facing)
- facing: - 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.
myModel:SetFacing(math.pi) -- rotates the model 180°
Source
https://warcraft.wiki.gg/wiki/API_Model_SetFacing · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.