我寫了一個新的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)