利用Box2D+WCK賦予Flash物理特性 萬有引力
這已經是第五篇Box2D+WCK的介紹文章了,前面幾篇文章如果各位有注意應該會發現,所有範例的萬有引力都跟現在我們生活的環境一樣,物件像是被地心引力給吸引著都會往下方掉落,其實我們在使用這個模組的時候,也可以改變這樣的萬有引力,讓這些物件不要往下掉落而是往我們所指定的方向移動,馬老師在這邊大概製作了三種不同類型的萬有引力範例,分述如下:
1.容器型萬有引力:這個萬有引力是利用一個封閉的空間來繪製的。
大概的製作步驟如下:
我們可以在World元件中繪製一個如下圖的形狀:
接下來將他轉換成一個影片片段,在類別的部分輸入gravity.GravityCapsule的名稱,如下圖所示:
接下來把這個元件拖曳到World元件裡面就可以了。
2.放射狀萬有引力:這種萬有引力是以往內或往外放射狀的方式存在。
我們可以在World元件中繪製一個如下圖的形狀:
接下來將他轉換成一個影片片段,在類別的部分輸入gravity.GravityRadial的名稱,如下圖所示:
接下來把這個元件拖曳到World元件裡面就可以了。
3.正弦萬有引力:就是三角函數的sin。
我們可以在World元件中繪製一個如下圖的形狀:
接下來將他轉換成一個影片片段,在類別的部分輸入gravity.GravitySine的名稱,如下圖所示:
接下來把這個元件拖曳到World元件裡面就可以了。
同樣的也讓大家可以下載以上的三個範例檔,範例檔為CS5格式,下載後要重新設定來源路徑和元件庫路徑喔!希望這個範例對大家有所幫助,如果還有疑問,也可以在這邊回應唷~
best india pharmacy buy medicines from India top 10 pharmacies in india
https://indiaph24.store/# Online medicine order
Great blog you have here but I was wanting to know if you knew of any discussion boards that cover the same topics talked about in this article? I’d really like to be a part of online community where I can get feedback from other experienced people that share the same interest. If you have any suggestions, please let me know. Bless you!
респиратор средство индивидуальной защиты
mexican mail order pharmacies purple pharmacy mexico price list medication from mexico pharmacy
http://canadaph24.pro/# canadian pharmacy phone number
https://mexicoph24.life/# mexican border pharmacies shipping to usa
safe online pharmacies in canada Large Selection of Medications from Canada canadian pharmacy 365
http://canadaph24.pro/# pharmacy rx world canada
https://indiaph24.store/# Online medicine home delivery
purple pharmacy mexico price list: Online Pharmacies in Mexico – buying prescription drugs in mexico online
https://mexicoph24.life/# medicine in mexico pharmacies
mexico pharmacies prescription drugs: Online Pharmacies in Mexico – reputable mexican pharmacies online
buy medicines online in india Cheapest online pharmacy indian pharmacy paypal
http://canadaph24.pro/# canadian pharmacies compare
buying prescription drugs in mexico Mexican Pharmacy Online mexico pharmacies prescription drugs
http://indiaph24.store/# buy medicines online in india
https://indiaph24.store/# online pharmacy india
pharmacies in mexico that ship to usa mexican pharmacy medication from mexico pharmacy
https://indiaph24.store/# top online pharmacy india
https://mexicoph24.life/# buying prescription drugs in mexico
global pharmacy canada: Certified Canadian Pharmacies – canadian pharmacy online ship to usa
best online pharmacy india Generic Medicine India to USA top online pharmacy india
http://mexicoph24.life/# best online pharmacies in mexico
https://indiaph24.store/# india pharmacy
https://canadaph24.pro/# 77 canadian pharmacy
pet meds without vet prescription canada Large Selection of Medications from Canada canadian pharmacy price checker
http://mexicoph24.life/# pharmacies in mexico that ship to usa
https://canadaph24.pro/# canada drugs
buying prescription drugs in mexico mexico pharmacy pharmacies in mexico that ship to usa
mexico drug stores pharmacies: mexico pharmacies prescription drugs – mexican mail order pharmacies