diff --git a/scripts/poker-admin-tablet.js b/scripts/poker-admin-tablet.js index 62438b9..ea82699 100644 --- a/scripts/poker-admin-tablet.js +++ b/scripts/poker-admin-tablet.js @@ -78,6 +78,7 @@ position: tablePos, rotation: tableRot, naturalDimensions: true, + registrationPoint: { x: 0.5, y: 0, z: 0.5 }, userData: JSON.stringify({ pokerID: pokerID, seatCount: seatCount, diff --git a/scripts/poker_sit.js b/scripts/poker_sit.js index d816fa2..6d4bca7 100644 --- a/scripts/poker_sit.js +++ b/scripts/poker_sit.js @@ -47,7 +47,9 @@ } function getSeatRotation() { - return Quat.fromPitchYawRollDegrees(0, _seatData.yaw, 0); + var tableProps = Entities.getEntityProperties(_tableID, ["rotation"]); + var tableYaw = Quat.safeEulerAngles(tableProps.rotation).y; + return Quat.fromPitchYawRollDegrees(0, tableYaw + _seatData.yaw, 0); } function notify(msg) {