首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >计算角以修正有尾翼的弹丸的轨迹

计算角以修正有尾翼的弹丸的轨迹
EN

Stack Overflow用户
提问于 2021-09-02 09:35:47
回答 1查看 46关注 0票数 0

我试图让一个圆柱体正确飞行(想象一支带尾翼的箭/导弹)。

我们知道我们的旅行方向和速度作为一个vector3。我们知道汽缸的旋转(四元数)。

我们有一个校正因子,我们可以施加一个力,在尾部旋转圆柱体,以对齐方向的旅行。

我们应该如何计算这个力的vector3 (力和方向)在尾部应用?

到目前为止,我的伪代码/评论:

代码语言:javascript
复制
/* First find out the relative wind vector (inverse of our direction of travel) overal aangle of attackl (aoa) */
Vector3 RelativeWind = rb.velocity * -1;

/* Next work out current alighment of the body */
Quaternion myAlignment = rb.transform.rotation.

/* Now return a vector of the direction we need to rotate in to align with relative wind */

/* and how large this quat is (ie how far out of line we are in the 3 axis */

/* Because missile is unified cylinder, we can lookup for all axis from same curve */
/* Now compute the force applied from the lookup curve */

/* Finally multpley by the "effective Fin Force" and output as force at the centre of Lift of the
 * fin Rig - this wil then rotate the entire missile system accordingly */
EN

回答 1

Stack Overflow用户

发布于 2021-09-02 15:27:01

与其用文字描述力传播到圆柱质心的方式,不如用接头把尾巴连接到圆柱上,只写尾巴与风的相互作用的逻辑。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69027713

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档