Skip to content

Commit

Permalink
Fix rotation of glTF v0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Son-HNguyen committed Oct 1, 2019
1 parent 8f72c08 commit e049ffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/CitydbKmlDataSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -1609,7 +1609,7 @@

// Backward compatible....
if (dataSource._gltfVersion == '0.8') {
heading = Cesium.Math.toRadians(headingValue - 180);
heading = Cesium.Math.toRadians(headingValue - 270);
pitch = Cesium.Math.toRadians(180);
} else if (dataSource._gltfVersion == '1.0') {
heading = Cesium.Math.toRadians(headingValue - 90);
Expand Down

0 comments on commit e049ffd

Please sign in to comment.