|
|
|
@ -366,11 +366,11 @@ function sendPlayerDataToServer() { |
|
|
|
// Send player data to the server
|
|
|
|
if (socket && socket.connected) { |
|
|
|
socket.emit('playerMovement', { |
|
|
|
position: player.camera.position, |
|
|
|
position: player.playerRig.position, |
|
|
|
rotation: { |
|
|
|
x: player.camera.rotation.x, |
|
|
|
y: player.camera.rotation.y, |
|
|
|
z: player.camera.rotation.z |
|
|
|
x: player.playerRig.rotation.x, |
|
|
|
y: player.playerRig.rotation.y, |
|
|
|
z: player.playerRig.rotation.z |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
|