CesiumGS / cesium

An open-source JavaScript library for world-class 3D globes and maps :earth_americas:
https://cesium.com/cesiumjs/
Apache License 2.0
12.79k stars 3.46k forks source link

Set transform for 3DTileset's single feature. #7274

Open Joyzen opened 5 years ago

Joyzen commented 5 years ago

Set TileFeature's color can modify color.is there a way to set feature's transform or matrix to modify feature's position,rientation and scale? Our team want to perform a animation on 3DTileset. we hava tried to set node's modelMatrix of a tile's _model,but it's not the way we want control features.It's node dvided by tile's BoundingVolume.

hpinkos commented 5 years ago

Hello @Joyzen. Each tile has a transform property you can set, but it doesn't look like there's a way to set a model matrix on a individual feature. @lilleyse do we have plans to support something like this in the future?

lilleyse commented 5 years ago

It's something we'd like to do but don't have plans for yet. Another use case would be clamping buildings to terrain at runtime as described in https://github.com/AnalyticalGraphicsInc/cesium/issues/7139.