RSS

Суббота, 02.11.2024, 13:19
Главная » WoW API » API Виджеты » Модель игрока »

PlayerModel:SetRotation(facing)

[ править ]
Sets the model's current rotation by animating the model.
[клоны]
Sets the model's current rotation by animating the model. This method is similar to Model:SetFacing() in that it rotates the 3D model displayed about its vertical axis; however, since the PlayerModel object displays a unit's model, this method is provided to allow for animating the rotation using the model's built-in animations for turning right and left.

For example, if the model faces towards the viewer when its facing is set to 0, setting its facing to math.pi faces it away from the viewer.


Signature:
Code
PlayerModel:SetRotation(facing)

Arguments:
  • facing - Rotation angle for the model (in radians) (number)

Также смотрите: Модель игрока
Ссылки: http://wowprogramming.com/docs/widgets/PlayerModel/SetRotation