Skip to content

Commit

Permalink
fix: Billboarding in VR
Browse files Browse the repository at this point in the history
  • Loading branch information
KallynGowdy committed Mar 12, 2020
1 parent c42d9c8 commit fd81c94
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ export class DimensionPositionDecorator extends AuxBot3DDecoratorBase {
) {
const cameraRig = this.bot3D.dimensionGroup.simulation3D.getMainCameraRig();
const cameraWorld = new Vector3();
cameraRig.mainCamera.getWorldPosition(cameraWorld);
cameraWorld.setFromMatrixPosition(
cameraRig.mainCamera.matrixWorld
);
this._rotationObj.lookAt(cameraWorld);
update = true;
if (this._orientationMode === 'billboardZ') {
Expand Down

0 comments on commit fd81c94

Please sign in to comment.