闭合贝塞尔路径
我正在向 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论