如何在超椭圆周围进行平滑运动?

时间:2016-10-19 17:45:35

标签: java math

我写了一个问题并得到了关于如何创建超椭圆(How do you create a modded ellipse path with sin/cos)的答案,它运行良好,但我遇到了一个问题。在下面的图像中,我有两个基于α变化为0.01的超椭圆I构造。您可以看到,在椭圆的四分点处,点之间的空间明显多于其他区域。这导致我的动作在那些位置“跳跃”。有没有办法让我这样做,以便这些差距不存在,或者可能添加一些数学来帮助隐藏这个问题?

2 super ellipses

1 个答案:

答案 0 :(得分:0)

I found the best way for me to get the smooth movement was to use the super ellipses equation to build a list of path nodes and then move through the list with a constant speed variable.

相关问题