利用Box2D+WCK賦予Flash物理特性 萬有引力
這已經是第五篇Box2D+WCK的介紹文章了,前面幾篇文章如果各位有注意應該會發現,所有範例的萬有引力都跟現在我們生活的環境一樣,物件像是被地心引力給吸引著都會往下方掉落,其實我們在使用這個模組的時候,也可以改變這樣的萬有引力,讓這些物件不要往下掉落而是往我們所指定的方向移動,馬老師在這邊大概製作了三種不同類型的萬有引力範例,分述如下:
1.容器型萬有引力:這個萬有引力是利用一個封閉的空間來繪製的。
大概的製作步驟如下:
我們可以在World元件中繪製一個如下圖的形狀:
接下來將他轉換成一個影片片段,在類別的部分輸入gravity.GravityCapsule的名稱,如下圖所示:
接下來把這個元件拖曳到World元件裡面就可以了。
2.放射狀萬有引力:這種萬有引力是以往內或往外放射狀的方式存在。
我們可以在World元件中繪製一個如下圖的形狀:
接下來將他轉換成一個影片片段,在類別的部分輸入gravity.GravityRadial的名稱,如下圖所示:
接下來把這個元件拖曳到World元件裡面就可以了。
3.正弦萬有引力:就是三角函數的sin。
我們可以在World元件中繪製一個如下圖的形狀:
接下來將他轉換成一個影片片段,在類別的部分輸入gravity.GravitySine的名稱,如下圖所示:
接下來把這個元件拖曳到World元件裡面就可以了。
同樣的也讓大家可以下載以上的三個範例檔,範例檔為CS5格式,下載後要重新設定來源路徑和元件庫路徑喔!希望這個範例對大家有所幫助,如果還有疑問,也可以在這邊回應唷~
gГјnstige online apotheke: europa apotheke – internet apotheke
comprare farmaci online all’estero farmacia online comprare farmaci online all’estero
beste online-apotheke ohne rezept: beste online-apotheke ohne rezept – medikament ohne rezept notfall
pharmacie en ligne france pas cher pharmacie en ligne france livraison internationale Pharmacie sans ordonnance
eu apotheke ohne rezept: gГјnstige online apotheke – п»їshop apotheke gutschein
medikamente rezeptfrei: online apotheke versandkostenfrei – online apotheke
online apotheke deutschland: beste online-apotheke ohne rezept – gГјnstige online apotheke
farmacias online seguras: farmacia online barata – farmacia online españa envÃo internacional
Pharmacie sans ordonnance: acheter mГ©dicament en ligne sans ordonnance – pharmacie en ligne fiable
ohne rezept apotheke: online apotheke gГјnstig – medikament ohne rezept notfall
beste online-apotheke ohne rezept [url=https://euapothekeohnerezept.com/#]online apotheke preisvergleich[/url] online apotheke deutschland
online apotheke deutschland europa apotheke online apotheke deutschland
https://euapothekeohnerezept.com/# ohne rezept apotheke
batmanapollo.ru
pharmacie en ligne sans ordonnance pharmacie en ligne france pas cher acheter mГ©dicament en ligne sans ordonnance
https://eufarmacieonline.shop/# Farmacia online miglior prezzo
pharmacie en ligne pas cher: pharmacie en ligne france fiable – pharmacie en ligne livraison europe
Farmacia online migliore: acquisto farmaci con ricetta – comprare farmaci online all’estero
farmacia online envГo gratis: farmacia online barata – farmacias online baratas
http://eumedicamentenligne.com/# pharmacie en ligne sans ordonnance
Farmacie online sicure: farmacia online – comprare farmaci online all’estero
online apotheke rezept: online apotheke versandkostenfrei – shop apotheke gutschein
apotheke online: beste online-apotheke ohne rezept – eu apotheke ohne rezept
farmacia online barata: farmacia online barata y fiable – farmacias online seguras en espaГ±a
farmacias online seguras en espaГ±a farmacias online seguras en espaГ±a п»їfarmacia online espaГ±a
3000 Euro Kredit
treatment for uti opportunity – treatment for uti throw treatment for uti unknown
farmacia online espaГ±a envГo internacional farmacia online barata farmacias online seguras en espaГ±a
pharmacie en ligne france pas cher: acheter médicament en ligne sans ordonnance – Achat médicament en ligne fiable
Pharmacie sans ordonnance: pharmacie en ligne pas cher – pharmacie en ligne avec ordonnance