//Create an entity with a billboard rotated to match its velocity.
var position = new Cesium.SampledProperty();
position.addSamples(...);
var entity = viewer.entities.add({
position : position,
billboard : {
image : 'image.png',
alignedAxis : new Cesium.VelocityVectorProperty(position)
}
}));
A Property which evaluates to a Cartesian3 vector based on the velocity of the provided PositionProperty
alias VelocityVectorProperty
- {Property} [position] The position property used to compute the velocity.
//Create an entity with a billboard rotated to match its velocity. var position = new Cesium.SampledProperty(); position.addSamples(...); var entity = viewer.entities.add({ position : position, billboard : { image : 'image.png', alignedAxis : new Cesium.VelocityVectorProperty(position) } }));