利用Box2D+WCK賦予Flash物理特性 萬有引力
這已經是第五篇Box2D+WCK的介紹文章了,前面幾篇文章如果各位有注意應該會發現,所有範例的萬有引力都跟現在我們生活的環境一樣,物件像是被地心引力給吸引著都會往下方掉落,其實我們在使用這個模組的時候,也可以改變這樣的萬有引力,讓這些物件不要往下掉落而是往我們所指定的方向移動,馬老師在這邊大概製作了三種不同類型的萬有引力範例,分述如下:
1.容器型萬有引力:這個萬有引力是利用一個封閉的空間來繪製的。
大概的製作步驟如下:
我們可以在World元件中繪製一個如下圖的形狀:
接下來將他轉換成一個影片片段,在類別的部分輸入gravity.GravityCapsule的名稱,如下圖所示:
接下來把這個元件拖曳到World元件裡面就可以了。
2.放射狀萬有引力:這種萬有引力是以往內或往外放射狀的方式存在。
我們可以在World元件中繪製一個如下圖的形狀:
接下來將他轉換成一個影片片段,在類別的部分輸入gravity.GravityRadial的名稱,如下圖所示:
接下來把這個元件拖曳到World元件裡面就可以了。
3.正弦萬有引力:就是三角函數的sin。
我們可以在World元件中繪製一個如下圖的形狀:
接下來將他轉換成一個影片片段,在類別的部分輸入gravity.GravitySine的名稱,如下圖所示:
接下來把這個元件拖曳到World元件裡面就可以了。
同樣的也讓大家可以下載以上的三個範例檔,範例檔為CS5格式,下載後要重新設定來源路徑和元件庫路徑喔!希望這個範例對大家有所幫助,如果還有疑問,也可以在這邊回應唷~
Kızıl türk hatun fena çekiyor Devamı: The following media includes potentially sensitive content.
Change settings. View. 1. 28. 97. Kürt porno.
doxycycline hyclate acne doxycycline without a prescription where can i get doxycycline what is ic doxycycline hyclate used for
Sometimes, the sheer magnitude of the information seems overwhelming.
Hello.This article was extremely interesting, particularly since I was searching for thoughts on this subject last couple of days.
This is really interesting, You’re a very skilled blogger. I have joined your feed and look forward to seeking more of your fantastic post. Also, I have shared your website in my social networks!
Just stumble upon your blog from from time to time. nice article
I really believe you will do well in the future I appreciate everything you have added to my knowledge base.
online casino deposit bonus
online casinos for us players
real money casino no deposit
There is a lot of misunderstanding about these issues today. Your material helps explain things.
synthroid patient teaching where can i buy synthroid cheap how long does levothyroxine withdrawal last how to say levothyroxine
online american casinos
online casino no deposit bonus
casino bonus online
doxycycline 20mg buy doxycycline 100mg capsules online doxycycline hyclate acne worse before better what are doxycycline tablets
These kind of posts are always inspiring and I prefer to read quality content so I happy to find many good point here in the post. writing is simply wonderful! thank you for the post
I believe this web site has some really wonderful info for everyone : D.
Your posts provide a clear, concise description of the issues.
online casinos usa
free signup bonus no deposit casino
best online casino for us players
электрическая рохля
https://samokhodnyye-elektricheskiye-telezhki.ru
mobile casino sites
real online gambling
free casino no deposit
molnupiravir tablets in india molnupiravir and ivermectin merck covid treatment know molnupiravir active ingredients in molnupiravir
casino mobile
no deposit welcome bonus
bester online casino bonus
You are my inhalation , I possess few web logs and very sporadically run out from to brand 🙁
online casino free bonus no deposit
mobile slots
online casino welcome bonus
The information shared is of top quality which has to get appreciated at all levels. Well done…
The information shared is of top quality which has to get appreciated at all levels. Well done…
I think it is a nice point of view. I most often meet people who rather say what they suppose others want to hear. Good and well written! I will come back to your site for sure!
best online casino real money
no deposit bonus casinos
no deposit bonuses
help dissertation
cheap dissertation help in los angeles
doctoral dissertation help thesis
doxycycline vs amoxicillin vibramycin doxycycline does doxycycline treat ear infections doxycycline for rosacea how long
https://companionfirearms.com/product/benelli-12-gauge-cordoba-semi-auto-shotgun-10637-for-sale/
You certainly deserve a round of applause for your post and more specifically, your blog in general. Very high quality material!