mirror of
https://github.com/overte-org/overte.git
synced 2025-08-12 19:35:22 +02:00
Fix position after rotation. May be fix rotation in HMD mode
This commit is contained in:
parent
b0e4b752d5
commit
8068e7201d
1 changed files with 3 additions and 4 deletions
|
@ -261,11 +261,10 @@ WebTablet.prototype.setLandscape = function(newLandscapeValue) {
|
|||
return;
|
||||
}
|
||||
|
||||
var tabletProperties = {};
|
||||
tabletProperties.visible = true;
|
||||
this.landscape = newLandscapeValue;
|
||||
this.calculateTabletAttachmentProperties(NO_HANDS, false, tabletProperties);
|
||||
Overlays.editOverlay(this.tabletEntityID, tabletProperties);
|
||||
Overlays.editOverlay(this.tabletEntityID,
|
||||
{ rotation: this.landscape ? Quat.multiply(Camera.orientation, ROT_LANDSCAPE) :
|
||||
Quat.multiply(Camera.orientation, ROT_Y_180) });
|
||||
Overlays.editOverlay(this.webOverlayID, {
|
||||
resolution: this.getTabletTextureResolution(),
|
||||
rotation: Quat.multiply(Camera.orientation, ROT_LANDSCAPE_WINDOW)
|
||||
|
|
Loading…
Reference in a new issue