VelocityOrientationProperty Cesium CZML


I have implemented a aircraft model 3d to move along a path of czml, but the orientation is bad.

I saw this example

but I don´t understand how I can apply it in CZML. Please some example this? Thanks.

Hi there,

This thread discusses VelocityOrientationProperty and a workaround to getting to work with just CZML. There’s a lot of information there, hopefully you can find what you need.



Thanks for the reply. I think I have got. I leave my code here to share it.

viewer.dataSources.add(Cesium.CzmlDataSource.load(czml)).then(function(ds) {

var entity = ds.entities.getById(‘path’);

viewer.trackedEntity = entity;

var property = new Cesium.SampledPositionProperty();

for (var i = 0; i < listCoord.length; i++) {

var position = new Cesium.Cartesian3.fromDegrees(listCoord[i].long, listCoord[i].lat, listCoord[i].altitud);

property.addSample(listCoord[i].time, position);


entity.orientation = new Cesium.VelocityOrientationProperty(property),


interpolationDegree : 1,

interpolationAlgorithm : Cesium.LinearApproximation




Awesome, looks good. Glad you got it to work, and thanks for the example!