闭合贝塞尔路径

发布于 2024-12-19 03:25:40 字数 197 浏览 1 评论 0原文

我正在向 UIBezierPath 添加许多小段直线和曲线。但无法确定接下来添加哪个元素。最终路径是一条没有中断的闭合路径。

现在我想为 BezierPath 上的一个对象设置动画。它有效,但有一个问题。因为我无法确定在动画过程中动画对象在路径上跳跃的路径旁边添加了哪一块。

有没有办法创建路径,以便动画不会在其上跳跃?

非常感谢。

I am adding many small pieces of lines and curves to a UIBezierPath. But it is impossible to determine which element is added next. In the end the Path is a closed path with no interrupts.

Now I wanna animate an object on the BezierPath. It works, but there is a problem. Because of the fact that I cannot determine which piece is added next to the path the animated object is jumping on the path, during the animation.

Is there a way to create the path so that the animation is not jumping around on it?

Thank you very much.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文