I’ve been going round and round in circles with this…
In simple terms, how do I draw a wall under the path of a moving entity? The code below shows how the entity is defined.
var entity = viewer.entities.add(
{
//Set the entity availability to the same interval as the simulation time.
availability : new Cesium.TimeIntervalCollection([new Cesium.TimeInterval(
{
start : start, stop : stop
}
)
]),
//Use our computed positions - a sampledPositionProperty
position : position,
// viewer.trackedEntity = entity,
//compute orientation - a sampledProperty
orientation : heading,
HeightReference : Cesium.HeightReference.NONE,
//Load the Cesium plane model to represent the entity
model : {
uri : ‘…/…/SampleData/models/CesiumAir/Cesium_Air.gltf’,
minimumPixelSize : 64
},
//Show the path as a pink line sampled in 1 second increments.
path : {
resolution : 1,
material : new Cesium.PolylineGlowMaterialProperty(
{
glowPower : 0.1, color : Cesium.Color.RED
}
),
width : 3,
leadTime :0
},
wall: {
show : true
material : Cesium.Color.BLUE.withAlpha(0.5),
outline : true,
outlineColor : Cesium.Color.BLACK
}
}
);
The ‘wall’ property added (in blue) must be missing something as nothing is shown. I have taken that from the details of WallGraphics in the API documentation.
Any suggestions as to how this could be achieved would be gratefully received.
Thanks,
Hugh