mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-12 16:58:39 +00:00
lua methods set_look_pitch and set_look_yaw
This commit is contained in:
parent
c00c8832c6
commit
7f51b2da28
5 changed files with 51 additions and 2 deletions
|
@ -1230,6 +1230,20 @@ void PlayerSAO::moveTo(v3f pos, bool continuous)
|
|||
m_moved = true;
|
||||
}
|
||||
|
||||
void PlayerSAO::setYaw(float yaw)
|
||||
{
|
||||
m_player->setYaw(yaw);
|
||||
// Force change on client
|
||||
m_moved = true;
|
||||
}
|
||||
|
||||
void PlayerSAO::setPitch(float pitch)
|
||||
{
|
||||
m_player->setPitch(pitch);
|
||||
// Force change on client
|
||||
m_moved = true;
|
||||
}
|
||||
|
||||
int PlayerSAO::punch(v3f dir,
|
||||
const ToolCapabilities *toolcap,
|
||||
ServerActiveObject *puncher,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue