Also rotate other players sight, so we can spectate their sight

This commit is contained in:
Daniel Maixner 2023-08-30 15:47:08 +02:00
parent 07a9c0bf0c
commit 2acaa91dc0

View File

@ -458,6 +458,7 @@ export class Game {
updateOtherPlayersModels(player, data) {
const playerObject = player.get3DObject()
playerObject.rotation.y = serverHorizontalRotationToThreeRadian(data.look.horizontal)
playerObject.getObjectByName('sight').rotation.x = serverVerticalRotationToThreeRadian(data.look.vertical)
const hand = playerObject.getObjectByName('hand')
if (hand.children.length) {