mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:24:07 +02:00
make edit mode play nicely
This commit is contained in:
parent
6ddc768f57
commit
5a89a51b85
1 changed files with 4 additions and 1 deletions
|
@ -338,8 +338,11 @@ WebTablet.prototype.setLandscape = function(newLandscapeValue) {
|
|||
var tabletHeight = TABLET_NATURAL_DIMENSIONS.y * tabletScaleFactor;
|
||||
var screenWidth = 0.9275 * tabletWidth;
|
||||
var screenHeight = 0.8983 * tabletHeight;
|
||||
var webLandScapeRotation = Quat.multiply(Quat.angleAxis(0.5, X_AXIS), Quat.angleAxis(-0.5, Y_AXIS));
|
||||
var webRegularRotation = Quat.angleAxis(0.5, X_AXIS);
|
||||
var webRotationOffset = this.landscape ? webLandScapeRotation : webRegularRotation;
|
||||
Overlays.editOverlay(this.webOverlayID, {
|
||||
rotation: Quat.multiply(cameraOrientation, ROT_LANDSCAPE_WINDOW),
|
||||
rotation: Quat.multiply(cameraOrientation, webRotationOffset),
|
||||
dimensions: {x: this.landscape ? screenHeight : screenWidth, y: this.landscape ? screenWidth : screenHeight, z: 0.1}
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue