利用Box2D+WCK賦予Flash物理特性 萬有引力
這已經是第五篇Box2D+WCK的介紹文章了,前面幾篇文章如果各位有注意應該會發現,所有範例的萬有引力都跟現在我們生活的環境一樣,物件像是被地心引力給吸引著都會往下方掉落,其實我們在使用這個模組的時候,也可以改變這樣的萬有引力,讓這些物件不要往下掉落而是往我們所指定的方向移動,馬老師在這邊大概製作了三種不同類型的萬有引力範例,分述如下:
1.容器型萬有引力:這個萬有引力是利用一個封閉的空間來繪製的。
大概的製作步驟如下:
我們可以在World元件中繪製一個如下圖的形狀:
接下來將他轉換成一個影片片段,在類別的部分輸入gravity.GravityCapsule的名稱,如下圖所示:
接下來把這個元件拖曳到World元件裡面就可以了。
2.放射狀萬有引力:這種萬有引力是以往內或往外放射狀的方式存在。
我們可以在World元件中繪製一個如下圖的形狀:
接下來將他轉換成一個影片片段,在類別的部分輸入gravity.GravityRadial的名稱,如下圖所示:
接下來把這個元件拖曳到World元件裡面就可以了。
3.正弦萬有引力:就是三角函數的sin。
我們可以在World元件中繪製一個如下圖的形狀:
接下來將他轉換成一個影片片段,在類別的部分輸入gravity.GravitySine的名稱,如下圖所示:
接下來把這個元件拖曳到World元件裡面就可以了。
同樣的也讓大家可以下載以上的三個範例檔,範例檔為CS5格式,下載後要重新設定來源路徑和元件庫路徑喔!希望這個範例對大家有所幫助,如果還有疑問,也可以在這邊回應唷~
canadian drug pharmacy canada cloud pharmacy prescription drugs canada buy online
canadian pharmacy discount coupon cheapest pharmacy cheapest pharmacy for prescription drugs
https://cheapestcanada.shop/# legal canadian pharmacy online
canadian pharmacy com [url=https://cheapestcanada.shop/#]canadian pharmacy 365[/url] canadian pharmacies compare
We’re a group of volunteers and opening a brand new scheme in our community.
Your site offered us with valuable info to work on. You have done an impressive task and our whole neighborhood will
likely be grateful to you.
https://36and6health.com/# pharmacy coupons
no prescription medicines: cheapest & fast pharmacy – ordering prescription drugs from canada
http://cheapestmexico.com/# buying prescription drugs in mexico
https://cheapestandfast.com/# online drugs no prescription
my canadian pharmacy [url=https://cheapestcanada.shop/#]cheapest canada[/url] canadian pharmacy no scripts
https://36and6health.com/# canadian pharmacy no prescription needed
cheap propecia without dr prescription: order propecia tablets – get cheap propecia without dr prescription
dark market onion https://mydarkmarket.com/ – darknet drug links darknet markets 2024
buy cheap clomid prices [url=http://clomiphene.shop/#]generic clomid pill[/url] how can i get clomid
order generic clomid without rx: cheap clomid now – cost of generic clomid price
cost propecia propecia prices buy cheap propecia for sale
cheap propecia no prescription cheap propecia online order generic propecia
cost of propecia without a prescription: cheap propecia pills – cost cheap propecia no prescription
PЕЇjДЌka 17000 KДЌ
how to get clomid without prescription: how can i get clomid no prescription – cost generic clomid pill
cheap propecia tablets [url=http://propeciaf.online/#]cost cheap propecia without dr prescription[/url] propecia otc
buying generic propecia pill: rx propecia – cost cheap propecia pill
medication neurontin neurontin capsules 100mg neurontin 300mg
cost of generic propecia online get cheap propecia without a prescription get cheap propecia without a prescription
http://propeciaf.online/# order propecia tablets
neurontin online pharmacy: neurontin singapore – neurontin 300
cost generic propecia tablets: cost of generic propecia price – get propecia without rx
http://propeciaf.online/# buying cheap propecia
https://cytotec.xyz/# buy cytotec pills online cheap
http://clomiphene.shop/# can you get generic clomid without insurance
order generic propecia without insurance: order cheap propecia price – get generic propecia without dr prescription
get cheap clomid for sale [url=http://clomiphene.shop/#]get clomid without rx[/url] cheap clomid for sale