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);