椭球运动缓和方程

发布于 2024-12-01 21:16:12 字数 131 浏览 5 评论 0原文

我想用缓动方程来模拟物体的椭球运动,更具体地说,像旋转的陀螺,但我无法得到一个缓动方程来帮助我做到这一点,有人知道吗?

我正在使用 html/js,但无论是用另一种语言,还是可以在这里制作,我都会继续寻找一种方法,同时等待您的答案。

I want to simulate a elipsoidal movement of an object with easing equations, more specificly like a spinning top, but i cannot get an easing equation that helps me to do that, can anyone knows one?

i am using html/js, but no matter if is in another language, or maybe could made one here, i'll keep searching for a method, while i'll wait your answers.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

帥小哥 2024-12-08 21:16:12

椭圆由以下方程参数化:

var x = Math.cos(t) * smja;
var y = Math.sin(t) * smna;

其中,smjasmna 分别是半长轴和半短轴。在 0 和 2π 之间运行 t,(x, y) 将描述一个椭圆。

An ellipse is parameterized by the equation:

var x = Math.cos(t) * smja;
var y = Math.sin(t) * smna;

Where smja and smna are the semi-major and semi-minor axes respectively. Run t between 0 and 2π and (x, y) will describe an ellipse.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文