mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
fix a numerical problem, but tool is still jittery
This commit is contained in:
parent
cbd2bcf102
commit
6599002149
2 changed files with 9 additions and 5 deletions
|
@ -151,8 +151,7 @@ void Camera::update(LocalPlayer* player, f32 frametime, v2u32 screensize)
|
|||
m_playernode->updateAbsolutePosition();
|
||||
|
||||
// Set head node transformation
|
||||
v3f eye_offset = player->getEyePosition() - player->getPosition();
|
||||
m_headnode->setPosition(eye_offset);
|
||||
m_headnode->setPosition(player->getEyeOffset());
|
||||
m_headnode->setRotation(v3f(player->getPitch(), 0, 0));
|
||||
m_headnode->updateAbsolutePosition();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue