利用Box2D+WCK賦予Flash物理特性 萬有引力
這已經是第五篇Box2D+WCK的介紹文章了,前面幾篇文章如果各位有注意應該會發現,所有範例的萬有引力都跟現在我們生活的環境一樣,物件像是被地心引力給吸引著都會往下方掉落,其實我們在使用這個模組的時候,也可以改變這樣的萬有引力,讓這些物件不要往下掉落而是往我們所指定的方向移動,馬老師在這邊大概製作了三種不同類型的萬有引力範例,分述如下:
1.容器型萬有引力:這個萬有引力是利用一個封閉的空間來繪製的。
大概的製作步驟如下:
我們可以在World元件中繪製一個如下圖的形狀:
接下來將他轉換成一個影片片段,在類別的部分輸入gravity.GravityCapsule的名稱,如下圖所示:
接下來把這個元件拖曳到World元件裡面就可以了。
2.放射狀萬有引力:這種萬有引力是以往內或往外放射狀的方式存在。
我們可以在World元件中繪製一個如下圖的形狀:
接下來將他轉換成一個影片片段,在類別的部分輸入gravity.GravityRadial的名稱,如下圖所示:
接下來把這個元件拖曳到World元件裡面就可以了。
3.正弦萬有引力:就是三角函數的sin。
我們可以在World元件中繪製一個如下圖的形狀:
接下來將他轉換成一個影片片段,在類別的部分輸入gravity.GravitySine的名稱,如下圖所示:
接下來把這個元件拖曳到World元件裡面就可以了。
同樣的也讓大家可以下載以上的三個範例檔,範例檔為CS5格式,下載後要重新設定來源路徑和元件庫路徑喔!希望這個範例對大家有所幫助,如果還有疑問,也可以在這邊回應唷~
It’s hard to find knowledgeable people on this topic, but you sound like you know what you’re talking about! Thanks
You are one talented writer thank you for the post.
zanaflex maximum dosage zanaflex 50 zanaflex 4 mg vs flexeril what does zanaflex make u eel if never took it before
We’re developing some community services to respond to this, and your blog is helpful.
I like the valuable info you provide in your articles. I’ll bookmark your weblog and check again here regularly. I am quite certain I’ll learn many new stuff right here! Good luck for the next!
priligy dapoxetine buy priligy for sale india tadalafil and dapoxetine hcl tablets uses where can i buy priligy online safely
Amazing article, cheers, I will bookmark you now.
what is generic for plaquenil order hydroxychloroquine without a prescription
If most people wrote about this subject with the eloquence that you just did, I’m sure people would do much more than just read, they act. Great stuff here. Please keep it up.
What i discover troublesome is to find a weblog that may capture me for a minute however your blog is different. Bravo.
dapoxetine fda priligy online dapoxetine how often to take for depression how to get priligy if your a kid
zithromax allergies zithromax tablet 500mg how do you take zithromax what are azithromycin pills used for
Amazing article, cheers, I will bookmark you now.
https://www.hydroxychloroquinex.com/ plaquenil prescribing information
I concur with your conclusions and will eagerly look forward to your future updates. The usefulness and significance is overwhelming and has been invaluable to me!
It’s the best time to make some plans for the future and it is time to be happy. I’ve read this post and if I could I wish to suggest you some interesting things or tips. Maybe you can write next articles referring to this article. I wish to read even more things about it!
fantastic post, very informative. I wonder why more of the ther experts in the field do not break it down like this. You should continue your writing. I am confident, you have a great readers’ base already!
mix robaxin zanaflex tizanidine without a prescription do you need a prescription for zanaflex what is the side effects of zanaflex
zanaflex headached tizanidine 4mg capsule cost whats difference in flexiril amd zanaflex how long does zanaflex work
antibiotic erythromycin http://erythromycin1m.com/#
Do you offer workshops?
বাংলা প্রশ্ন উত্তর সাইট তল্লাশি, আজই আপনার সমস্যা নিয়ে প্রশ্ন করুন , অভিজ্ঞ ব্যক্তিগন আপনার প্রশ্নের উত্তর দিয়ে সহযোগিতা করবে । তাছাড়াও অন্যাদের প্রশ্নের উত্তর দিয়ে, জিতে নিন আকর্ষণীয় পুরস্কার । তল্লাশিতে যেকোনো বিষয়ে প্রশ্ন করতে পারেন।।
what is the antibiotic erythromycin used to treat
uses for erythromycin ophthalmic ointment erythromycin ophthalmic solution
cewlf
aqdep
je8o
3ykae
0ltmo
y5wc
erythromycin eye ointment side effects https://erythromycin1m.com/#
If you don’t mind, where do you host your weblog? I am looking for a very good web host and your webpage seams to be extremely fast and up most the time…
viagra/cialis black and gold 800 buy cialis online next day shipping geneneric cialis aus
erythromycin base 250mg erythromycin eye ointment for newborns