查找沿路径AS3的所有点

编程入门 行业动态 更新时间:2024-10-26 21:33:19
本文介绍了查找沿路径AS3的所有点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

基本上,我想要一个影片剪辑随机添加到沿Bezier曲线的任何一点。有没有办法找到一条路径的所有点?或者,也许有办法找到方程(这是一个二次曲线)?如果一切都失败了,有没有办法找到沿着一条直线的点(即不是完全水平或垂直)?

Basically, I want to randomly add a movie clip to any point along a bezier curve. Is there a way to find all points along a path? Or maybe there's a way to find the equation (it's a quadratic curve)? If all else fails, is there a way to find the points along a straight line (that isn't perfectly horizontal or vertical)?

推荐答案

如果您正在使用钢笔工具,这是创建一个图形。您可以通过从 Shape.graphics.readGraphicsData读取结果访问这种形状的路径()

If you are using the pen tool, this is creating a Shape. You can access the path of this shape by reading the result from Shape.graphics.readGraphicsData()

请参阅参考 readGraphicsData 。

更多推荐

查找沿路径AS3的所有点

本文发布于:2023-10-13 14:28:39,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1488210.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:沿路

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!