3Dtiles, To change the location of a building

hi all,

I have a question.

I added a building using the option to 'transform' at tileset.json file.

I want to change the location of my building to korea.

  "root": {
    "transform": [
       1.2686356343768792,
       0.24848542777253735,
       0,
       0,
      -0.15986460744966327,
       0.623177611820219,
       0.765567091384559,
       0,
       0.19023226619126932,
      -0.7415555652213445,
       0.6433560667227647,
       0,
       x,
       y,
       z,
       1
    ],
Should I put Korean coordinates in x, y, z?
What is the coordinates system? ECEF or wgs84 ?
and i need a description of each item in "transform"

Thanks so very much for your help

Hello!

Just replacing x, y, z isn’t enough because the rotation component of the matrix will not be aligned correctly with the new location.

Try computing the transform with this Cesium code:

Cesium.Transforms.headingPitchRollToFixedFrame(Cesium.Cartesian3.fromRadians(longitude, latitude, height), new Cesium.HeadingPitchRoll());

``

The resulting transform is ECEF.

Also you shouldn’t need a description of each item in transform. Though I’m not completely sure what you mean.

thanks Sean

Thanks to your advice, I understand.

My building is located in Korea.

have a nice day.