1.创建飞机
参数帮助文档

var poitList = GetTracksData();
var waypointPropagator = new WaypointPropagator(m_earth, poitList);
var locationPoint = waypointPropagator.CreatePoint();
m_aircraft = new Platform
{
Name = "MH730",
LocationPoint = locationPoint,
OrientationAxes = new AxesVehicleVelocityLocalHorizontal(m_earth.FixedFrame, locationPoint),
};
// Set the identifier for the aircraft in the CZML document.
m_aircraft.Extensions.Add(new IdentifierExtension("MH730"));
// Hermite interpolation works better for aircraft-like vehicles.
m_aircraft.Extensions.Add(new CesiumPositionExtension
{
InterpolationAlgorithm = CesiumInterpolationAlgorithm.Hermite
});
// Configure a glTF model for the aircraft.
m_aircraft.Extensions.Add(new ModelGraphicsExtension(new ModelGraphics
{
// Link to a binary glTF file.
Model = new CesiumResource(GetModelUri("aircraft.glb"), CesiumResourceBehavior.LinkTo),
// Flip the model visually to point Z in the correct direction.
NodeTransformations = new Dictionary<string, NodeTransformationGraphics>
{
{
"Aircraft", new NodeTransformationGraphics
{
Rotation = new UnitQuaternion(new ElementaryRotation(A

文章介绍了如何在CZML中创建飞机模型,设置其位置、轨迹、传感器,并使用Hermite插值和自定义传感器定义。还展示了如何为飞机添加传感器,定义传感器的视角和图形显示。
最低0.47元/天 解锁文章
1484

被折叠的 条评论
为什么被折叠?



