fix for tablet spawn position

This commit is contained in:
Anthony J. Thibault 2017-08-31 13:15:46 -07:00
parent 1a01209020
commit a0eb8152a6

View file

@ -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 {