利用Box2D+WCK賦予Flash物理特性 萬有引力
這已經是第五篇Box2D+WCK的介紹文章了,前面幾篇文章如果各位有注意應該會發現,所有範例的萬有引力都跟現在我們生活的環境一樣,物件像是被地心引力給吸引著都會往下方掉落,其實我們在使用這個模組的時候,也可以改變這樣的萬有引力,讓這些物件不要往下掉落而是往我們所指定的方向移動,馬老師在這邊大概製作了三種不同類型的萬有引力範例,分述如下:
1.容器型萬有引力:這個萬有引力是利用一個封閉的空間來繪製的。
大概的製作步驟如下:
我們可以在World元件中繪製一個如下圖的形狀:
接下來將他轉換成一個影片片段,在類別的部分輸入gravity.GravityCapsule的名稱,如下圖所示:
接下來把這個元件拖曳到World元件裡面就可以了。
2.放射狀萬有引力:這種萬有引力是以往內或往外放射狀的方式存在。
我們可以在World元件中繪製一個如下圖的形狀:
接下來將他轉換成一個影片片段,在類別的部分輸入gravity.GravityRadial的名稱,如下圖所示:
接下來把這個元件拖曳到World元件裡面就可以了。
3.正弦萬有引力:就是三角函數的sin。
我們可以在World元件中繪製一個如下圖的形狀:
接下來將他轉換成一個影片片段,在類別的部分輸入gravity.GravitySine的名稱,如下圖所示:
接下來把這個元件拖曳到World元件裡面就可以了。
同樣的也讓大家可以下載以上的三個範例檔,範例檔為CS5格式,下載後要重新設定來源路徑和元件庫路徑喔!希望這個範例對大家有所幫助,如果還有疑問,也可以在這邊回應唷~
provigil 100mg pill order provigil 200mg for sale modafinil online
viagra pills viagra sildenafil 20 mg
provigil 100mg usa brand modafinil 100mg
buy provigil generic buy provigil online cheap
clomid tablets for sale buy clomid 50mg online clomid for sale
modafinil 200mg price provigil 200mg without prescription
erectile dysfunction drug best ed medications new ed treatments
buy generic provigil 200mg purchase modafinil pill
legitimate online pharmacies india prescriptions from india india pharmacy
order modafinil 100mg online cheap
meds online without doctor prescription internet pharmacy no prior prescription meds online without doctor prescription
stromectol price usa prescribing stromectol stromectol price usa
Fantastic website. A lot of helpful information here. I’m sending it to some friends ans also sharing in delicious. And of course, thanks on your sweat!
online ed medications best pill for ed new treatments for ed
ivermectin australia 2021 ivermectin injectable dosage for chickens ivermectin wormers for horses
ivermectin overdose cattle will ivermectin kill fleas ivermectin child dose
online canadian pharmacy best non prescription ed pills mexican pharmacy without prescription
generic propecia finasteride for hair loss propecia price
non prescription ed drugs best otc ed pills non prescription ed drugs
gnc ed pills best ed treatment pills erectile dysfunction drugs
how to use ivermectin for dogs ivermectin. ivermectin covid trial
cialis online reviews canadian pharmacy cialis brand buy cialis online usa
treating heartworms with ivermectin ivermectin pour on for dogs ivermectin (stromectol).
prescription drugs without doctor approval best ed pills that work muse for ed
what works better viagra or cialis when can i take viagra after taking cialis 10 mg cialis for sale
ivermectin manufacturers in usa ivermectin dosage humans ivermectin for mange in foxes
pain medications without a prescription male ed drugs ed medications
cialis with dapoxetine usa cialis best place to buy cialis
cheap ed pills
Great – I should definitely pronounce, impressed with your web site. I had no trouble navigating through all tabs as well as related information ended up being truly simple to do to access. I recently found what I hoped for before you know it in the least. Quite unusual. Is likely to appreciate it for those who add forums or anything, website theme . a tones way for your client to communicate. Excellent task..