开发者

Ellipsoidal movement easing equation

开发者 https://www.devze.com 2023-03-31 19:24 出处:网络
I want to simulate a elipsoidal movement of an object wit开发者_运维知识库h easing equations, more specificly like a spinning top, but i cannot get an easing equation that helps me to do that, can any

I want to simulate a elipsoidal movement of an object wit开发者_运维知识库h 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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消