I use it to integrate Babylon and cesium, but the pick operation in Babylon cannot be clicked, how to solve it
window.addEventListener(“click”, function () {
// We try to pick an object
var pickResult = _this.scene.pick(_this.scene.pointerX, _this.scene.pointerY);
if (pickResult.hit) {
x = pickResult.pickedPoint.x;
y = pickResult.pickedPoint.y;
z = pickResult.pickedPoint.z;
console.log(pickResult.pickedPoint.x);
console.log(pickResult.pickedPoint.y);
console.log(pickResult.pickedPoint.z);
box.position = new BABYLON.Vector3(x,y,z);
}
});
the pick _this.scene.pointerX Always 0