Hi i wanna change allowPicking attribute after load GLTF Model Primitives.
After load model.
Definitely type ‘model.allowPicking = true;’ at browser console.
But it’s not working.
Still allowPicking is false;
Why this happen??
My sample code is below.
var center = Cesium.Cartesian3.fromDegrees(129.145695, 35.272841, 107.6);
var heading = Cesium.Math.toRadians(-69);
var pitch = Cesium.Math.toRadians(90);
var roll = 0.0;
var hpr = new Cesium.HeadingPitchRoll(heading, pitch, roll);
var transform = Cesium.Transforms.headingPitchRollToFixedFrame(center, hpr);
var model = scene.primitives.add(Cesium.Model.fromGltf({
url : url,
modelMatrix : transform,
scale : 0.3,
minimumPixelSize : 1,
maximumScale: 20000,
debugShowBoundingVolume : false,
allowPicking:false
}));