mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +02:00
Merge pull request #11414 from druiz17/fix-tablet-position
Fix tablet up orientation for wiki planet
This commit is contained in:
commit
1ca42cc632
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ function calcSpawnInfo(hand, landscape) {
|
|||
var forward = Quat.getForward(headRot);
|
||||
var FORWARD_OFFSET = 0.6 * MyAvatar.sensorToWorldScale;
|
||||
finalPosition = Vec3.sum(headPos, Vec3.multiply(FORWARD_OFFSET, forward));
|
||||
var orientation = Quat.lookAt({x: 0, y: 0, z: 0}, forward, {x: 0, y: 1, z: 0});
|
||||
var orientation = Quat.lookAt({x: 0, y: 0, z: 0}, forward, Vec3.multiplyQbyV(MyAvatar.orientation, Vec3.UNIT_Y));
|
||||
return {
|
||||
position: finalPosition,
|
||||
rotation: landscape ? Quat.multiply(orientation, ROT_LANDSCAPE) : Quat.multiply(orientation, ROT_Y_180)
|
||||
|
|
Loading…
Reference in a new issue