开发者

Flash AS3 find closest point to handrawn path

开发者 https://www.devze.com 2023-03-17 16:38 出处:网络
I ha开发者_运维问答ve a path drawn in the flash IDE, accessible as a MovieClip. With AS3 I need to find the closest point lying on this path to another point.

I ha开发者_运维问答ve a path drawn in the flash IDE, accessible as a MovieClip.

With AS3 I need to find the closest point lying on this path to another point.

How can I do that?


A trick I've used in the past is to convert the path to a motion guide, then create a simple timeline tween where a simple MC travels from start to finish. then export that animation as an Animation/XML. you've now got a list of points with timing info to use however you want. (writing from my phone so I can't look up the exact syntax within the IDE.)

0

精彩评论

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