mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
fix for tablet spawn position
This commit is contained in:
parent
1a01209020
commit
a0eb8152a6
1 changed files with 2 additions and 1 deletions
|
@ -76,7 +76,8 @@ function calcSpawnInfo(hand, tabletHeight, landscape) {
|
|||
var TABLET_RAKE_ANGLE = 30;
|
||||
rotation = Quat.multiply(Quat.angleAxis(TABLET_RAKE_ANGLE, Vec3.multiplyQbyV(lookAt, Vec3.UNIT_X)), lookAt);
|
||||
|
||||
var RELATIVE_SPAWN_OFFSET = { x: 0, y: 0.6, z: 0.1 };
|
||||
var sensorScaleFactor = MyAvatar.sensorToWorldScale;
|
||||
var RELATIVE_SPAWN_OFFSET = { x: 0, y: 0.6 * sensorScaleFactor, z: 0.1 * sensorScaleFactor };
|
||||
position = Vec3.sum(position, Vec3.multiplyQbyV(rotation, Vec3.multiply(tabletHeight, RELATIVE_SPAWN_OFFSET)));
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue