作者cjcat2266 (CJ Cat)
看板Flash
標題[星塵] Waypoints - 追蹤指定路徑
時間Sun Aug 23 23:34:09 2009
我寫了一個新的FollowWaypoints class
可以讓粒子遵循指定的路徑移動
(另外還有3D版本:FollowWaypoints3D)
這裡有個demo
結點是可以拖曳的唷:)
http://cjcat.blogspot.com/2009/08/waypoints.html
我是參考Keith Peters寫的AdvancED ActionScript 3.0 Animation
Steering Behaviors章節的Path Following小節
其中所提到的演算法
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.228.80.60
※ 編輯: cjcat2266 來自: 61.228.80.60 (08/23 23:34)
推 dxmeteor:Cool CJ 必推!! 08/24 02:15
推 skylight68:推一個 08/24 04:07
推 kudoropu:好棒 08/24 07:47
推 etrexetrex:背後的綠霧是什麼原理阿 超強 08/27 07:01
→ cjcat2266:只是BitmapData.draw() + BlurFilter + 調整alpha呀XD 08/27 10:33
推 aquarianboy:我有試著故意拖結點不讓綠點通過,結果越帶越多... 08/28 11:09
→ cjcat2266:是啊,看來我們都會做一樣的事情... 08/28 11:27