MCPcopy Create free account
hub / github.com/cuberite/cuberite / HandlePlayerLook

Method HandlePlayerLook

src/ClientHandle.cpp:1191–1202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1189
1190
1191void cClientHandle::HandlePlayerLook(float a_Rotation, float a_Pitch, bool a_IsOnGround)
1192{
1193 if ((m_Player == NULL) || (m_State != csPlaying))
1194 {
1195 return;
1196 }
1197
1198 m_Player->SetYaw (a_Rotation);
1199 m_Player->SetHeadYaw (a_Rotation);
1200 m_Player->SetPitch (a_Pitch);
1201 m_Player->SetTouchGround(a_IsOnGround);
1202}
1203
1204
1205

Callers 2

ParsePlayerLookMethod · 0.80

Calls 4

SetYawMethod · 0.80
SetHeadYawMethod · 0.80
SetTouchGroundMethod · 0.80
SetPitchMethod · 0.45

Tested by

no test coverage detected