DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ UpdateRotation()

void PlayerPreview::UpdateRotation ( int mouse_x,
int mouse_y,
bool is_dragging )
inlineprotected

См. определение в файле PlayerPreview.c строка 30

31 {
33 {
34 vector orientation = m_CharacterOrientation;
35 orientation[1] = orientation[1] - ( m_CharacterRotationX - mouse_x );
36
37 m_CharacterPanelWidget.SetModelOrientation( orientation );
38
39 if ( !is_dragging )
40 {
41 m_CharacterOrientation = orientation;
42 }
43 }
44 }
ref PlayerPreviewWidget m_CharacterPanelWidget
Определения PlayerPreview.c:3
int m_CharacterRotationX
Определения PlayerPreview.c:5
vector m_CharacterOrientation
Определения PlayerPreview.c:8

Перекрестные ссылки m_CharacterOrientation, m_CharacterPanelWidget и m_CharacterRotationX.

Используется в UpdateInterval().