Skip to content

Commit

Permalink
Merge pull request #5907 from mozilla/bitecs-billboard-fix
Browse files Browse the repository at this point in the history
Bitecs-billboard-fix
  • Loading branch information
keianhzo committed Jan 23, 2023
2 parents 554f519 + a419352 commit d3cdd69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/bit-systems/billboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Billboard } from "../bit-components";

const billboardQuery = defineQuery([Billboard]);

const isMobileVR = AFRAME.utils.device.isMobileVR() || true;
const isMobileVR = AFRAME.utils.device.isMobileVR();

const targetPos = new Vector3();
const worldPos = new Vector3();
Expand Down
1 change: 1 addition & 0 deletions src/components/name-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ AFRAME.registerComponent("name-tag", {

this.neck.getWorldPosition(worldPos);
worldPos.setY(this.nametagElPosY + this.ikRoot.position.y);
mat.copy(this.nametag.matrixWorld);
mat.setPosition(worldPos);
setMatrixWorld(this.nametag, mat);
} else {
Expand Down

0 comments on commit d3cdd69

Please sign in to comment.