STK Components 二次开发-飞行器

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

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
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值