利用Box2D+WCK賦予Flash物理特性 萬有引力
這已經是第五篇Box2D+WCK的介紹文章了,前面幾篇文章如果各位有注意應該會發現,所有範例的萬有引力都跟現在我們生活的環境一樣,物件像是被地心引力給吸引著都會往下方掉落,其實我們在使用這個模組的時候,也可以改變這樣的萬有引力,讓這些物件不要往下掉落而是往我們所指定的方向移動,馬老師在這邊大概製作了三種不同類型的萬有引力範例,分述如下:
1.容器型萬有引力:這個萬有引力是利用一個封閉的空間來繪製的。
大概的製作步驟如下:
我們可以在World元件中繪製一個如下圖的形狀:
接下來將他轉換成一個影片片段,在類別的部分輸入gravity.GravityCapsule的名稱,如下圖所示:
接下來把這個元件拖曳到World元件裡面就可以了。
2.放射狀萬有引力:這種萬有引力是以往內或往外放射狀的方式存在。
我們可以在World元件中繪製一個如下圖的形狀:
接下來將他轉換成一個影片片段,在類別的部分輸入gravity.GravityRadial的名稱,如下圖所示:
接下來把這個元件拖曳到World元件裡面就可以了。
3.正弦萬有引力:就是三角函數的sin。
我們可以在World元件中繪製一個如下圖的形狀:
接下來將他轉換成一個影片片段,在類別的部分輸入gravity.GravitySine的名稱,如下圖所示:
接下來把這個元件拖曳到World元件裡面就可以了。
同樣的也讓大家可以下載以上的三個範例檔,範例檔為CS5格式,下載後要重新設定來源路徑和元件庫路徑喔!希望這個範例對大家有所幫助,如果還有疑問,也可以在這邊回應唷~
http://propeciaf.online/# buy propecia pill
cheap propecia without prescription cost of cheap propecia online propecia generics
buy propecia prices: cheap propecia online – cost propecia online
generic propecia prices cost of generic propecia without a prescription buy generic propecia no prescription
Cytotec 200mcg price: п»їcytotec pills online – buy cytotec over the counter
https://clomiphene.shop/# can i order generic clomid pills
cytotec abortion pill [url=https://cytotec.xyz/#]buy cytotec online[/url] buy cytotec in usa
cytotec online buy cytotec over the counter cytotec pills buy online
http://gabapentin.club/# neurontin generic
neurontin tablets 300mg: 32 neurontin – drug neurontin 20 mg
rx 535 lisinopril 40 mg: purchase lisinopril online – price of lisinopril 30 mg
https://gabapentin.club/# neurontin capsules 600mg
order generic clomid for sale [url=http://clomiphene.shop/#]where to get generic clomid pill[/url] clomid price
https://propeciaf.online/# buy propecia
can you get generic clomid tablets get clomid no prescription how to get cheap clomid for sale
http://gabapentin.club/# gabapentin buy
zestoretic coupon lisinopril 10 mg for sale lisinopril 2.5 mg coupon
neurontin mexico: neurontin 100mg cap – neurontin 600 mg pill
http://propeciaf.online/# propecia without prescription
lisinopril 420: lisinopril – lisinopril 10 mg online
Misoprostol 200 mg buy online: buy cytotec online fast delivery – buy cytotec
http://clomiphene.shop/# buying cheap clomid without insurance
https://cytotec.xyz/# cytotec abortion pill
lisinopril 30 mg [url=https://lisinopril.club/#]buy lisinopril 20 mg online canada[/url] prinivil 5mg tablet
buy cytotec pills online cheap buy misoprostol over the counter buy cytotec pills online cheap
http://lisinopril.club/# buy lisinopril 20 mg
purchase cytotec buy cytotec online fast delivery buy cytotec over the counter
Hi i am kavin, its my first time to commenting anyplace, when i read this post i thought i could also make comment due to this good post.
Анод для бойлера 16×200 мм M4x50 (AND-020)
can i order cheap clomid without a prescription: how to get clomid without a prescription – can i order cheap clomid pills
What a stuff of un-ambiguity and preserveness of precious familiarity concerning unexpected emotions.
Дзеркало телескопічне Whicepart (СТ-502)