利用Box2D+WCK賦予Flash物理特性 萬有引力
這已經是第五篇Box2D+WCK的介紹文章了,前面幾篇文章如果各位有注意應該會發現,所有範例的萬有引力都跟現在我們生活的環境一樣,物件像是被地心引力給吸引著都會往下方掉落,其實我們在使用這個模組的時候,也可以改變這樣的萬有引力,讓這些物件不要往下掉落而是往我們所指定的方向移動,馬老師在這邊大概製作了三種不同類型的萬有引力範例,分述如下:
1.容器型萬有引力:這個萬有引力是利用一個封閉的空間來繪製的。
大概的製作步驟如下:
我們可以在World元件中繪製一個如下圖的形狀:
接下來將他轉換成一個影片片段,在類別的部分輸入gravity.GravityCapsule的名稱,如下圖所示:
接下來把這個元件拖曳到World元件裡面就可以了。
2.放射狀萬有引力:這種萬有引力是以往內或往外放射狀的方式存在。
我們可以在World元件中繪製一個如下圖的形狀:
接下來將他轉換成一個影片片段,在類別的部分輸入gravity.GravityRadial的名稱,如下圖所示:
接下來把這個元件拖曳到World元件裡面就可以了。
3.正弦萬有引力:就是三角函數的sin。
我們可以在World元件中繪製一個如下圖的形狀:
接下來將他轉換成一個影片片段,在類別的部分輸入gravity.GravitySine的名稱,如下圖所示:
接下來把這個元件拖曳到World元件裡面就可以了。
同樣的也讓大家可以下載以上的三個範例檔,範例檔為CS5格式,下載後要重新設定來源路徑和元件庫路徑喔!希望這個範例對大家有所幫助,如果還有疑問,也可以在這邊回應唷~
zithromax 500 mg zithromax for sale us zithromax prescription online
batmanapollo.ru
http://zithromaxa.store/# where can i buy zithromax capsules
Do you have a spam issue on this site; I also am a blogger, and I was wanting to know your situation; we have developed some nice methods and we are looking to exchange strategies with other folks, why not shoot me an e-mail if interested.
https://squareblogs.net/typhanhntw/h1-b-vpliv-skla-far-na-bezpeku-ta-komfort-vodinnia-b-h1
amoxicillin 500 mg capsule: amoxicillin buy online canada – amoxicillin script
over the counter prednisone medicine: over the counter prednisone pills – prednisone 20mg online pharmacy
viagra professional goose – buy cialis professional thirty levitra oral jelly online gang
neurontin 400 mg capsules: neurontin 300 mg buy – neurontin 300 mg coupon
https://prednisoned.online/# medicine prednisone 5mg
Outstanding post but I was wondering if you could write a litte more on this topic? I’d be very grateful if you could elaborate a little bit more. Many thanks!
https://bookmarkfeeds.stream/story.php?title=SKLO-DLYA-FAR-NAIKRASHCHII-VIB%D1%96R-DLYA-VASHOGO-AVTO#discuss
doxycycline 100mg dogs [url=https://doxycyclinea.online/#]doxycycline pills[/url] doxycycline
buy cheap generic zithromax: where to get zithromax over the counter – zithromax antibiotic
prednisone for cheap prednisone prices where to buy prednisone without prescription
where to buy prednisone 20mg prednisone 54 prednisone without prescription 10mg
Payday loans in Colorado
buy amoxicillin 500mg: amoxicillin 500 mg without prescription – amoxicillin 500 mg where to buy
https://amoxila.pro/# amoxicillin 500 coupon
neurontin for sale online: neurontin 300 mg cap – 2000 mg neurontin
where can you get amoxicillin: buy amoxicillin online uk – purchase amoxicillin 500 mg
Hi it’s me, I am also visiting this website daily, this site is actually good and the visitors are truly sharing fastidious thoughts.
https://zenwriting.net/melunepfly/h1-b-iak-pravil-no-pidibrati-linzu-dlia-fari-vashogo-avtomobilia-b-h1
order amoxicillin 500mg: buying amoxicillin in mexico – generic amoxil 500 mg
amoxicillin online pharmacy: purchase amoxicillin online – price for amoxicillin 875 mg
http://prednisoned.online/# best pharmacy prednisone
doxycycline vibramycin [url=https://doxycyclinea.online/#]doxycycline hyc[/url] doxycycline pills
zithromax online australia zithromax for sale us zithromax cost canada
can i buy zithromax over the counter in canada buy zithromax no prescription zithromax 250 mg
cheap zithromax pills: buy zithromax online cheap – zithromax drug
order doxycycline: buy doxycycline without prescription – doxycycline 150 mg
buy doxycycline online uk: how to buy doxycycline online – doxycycline hyclate 100 mg cap
buy amoxicillin 500mg uk: price for amoxicillin 875 mg – amoxicillin 200 mg tablet