i am trying to rotate every building which height is heigher than 100 ,
it seems the modelMartix is worked but not correctly
could anyone know the right way to write the modelMatrix?
here is the sandcastle
i am trying to rotate every building which height is heigher than 100 ,
it seems the modelMartix is worked but not correctly
could anyone know the right way to write the modelMatrix?
here is the sandcastle
Hi @samkallon, I’m not sure if what you’re trying to do is possible. One thing I noticed in your code is that you are referring to feature.content
as if that content was specific to the feature:
for (var i = 0; i < featuresLength; i += 1) {
let feature = content.getFeature(i);
// ...
let model = feature.content._model;
The private getter Cesium3DTileFeature.prototype.content
actually refers back to the Cesium3DTileContent
which contains the feature, so your loop is repeatedly modifying the same content._model.modelMatrix
.