mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:44:06 +02:00
tablet on wiki planet
This commit is contained in:
parent
0f3834ded4
commit
e78d8bc132
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