Attitude Camera pose mode

Hey there, I’m using CameraPoseMode.Attitude but I am experiencing an issue with the direction of rotations. As you can see from the video below, the direction that the sphere travels is in the opposite direction from where I am rotating the phone.

relavant code:

    import {
  Camera as ZapparCamera,
  CameraMirrorMode,
  CameraPoseMode,
} from "@zappar/zappar-threejs";

class CameraXR extends ZapparCamera {
  constructor() {
    super();
    this.poseMode = CameraPoseMode.Attitude;
    this.rearCameraMirrorMode = CameraMirrorMode.None;
  }
}

export default CameraXR;

this.instantTracker = new InstantWorldTracker();
    this.instantTrackerGroup = new InstantWorldAnchorGroup(
      this.camera,
      this.instantTracker
    );

    this.scene.add(this.instantTrackerGroup);

    this.instantTrackerGroup.add(this.sphere);

Solved by first adding the camera to a group, and then adding the group to the scene:

this.cameraGroup = new Group();
this.cameraGroup.add(this.camera);
this.scene.add(this.cameraGroup);
1 Like