利用Box2D+WCK賦予Flash物理特性 各種連接器

馬老師在前面的文章中已經示範過基本的Box2D+WCK應用以及連接器的製作,這篇文章就來示範在這個模組中所有可以製作的連接器,連接器共有以下八種:

Box2D+WCK 連接器種類

這邊就分別針對這八種連接器做一些介紹和範例。

Distance:距離連接器,跟連接的目標保持一定的距離,被連結物件依然可以旋轉。

Distance Joint

Line:線性連接器,跟連接的目標保持一定的距離,被連結物件無法旋轉。

Line Joint

Mouse:位置連接器,即使被移動依然會回到連接器原始座標。

Mouse Joint

Prismatic:彈性連接器,可以更改不同的彈力數值。

Pulley:滑輪連接器,一邊施加力道另外一邊就會連動。

Pulley Joint

Revolute:轉動連接器,固定元件中心點。

Revolute Joint

Weld:焊接連接器,將不同的形狀焊接在一起。

Weld Joint

Friction:摩擦連接器,讓物體產生磨擦力。

Friction Joint

Rope:繩索連接器,用連接線連接物體。

Rope Joint

範例檔下載,上述的連結器範例,大家要注意我在連接器上面的組件設定,另外範例檔為CS5格式,下載後要重新設定來源路徑和元件庫路徑喔!(詳見第一篇Box2D+WCK)希望這個範例對大家有所幫助,如果還有疑問,也可以在這邊回應唷~

You may also like...

8,755 Responses

  1. Your style is so unique in comparison to other folks I’ve read
    stuff from. Thank you for posting when you’ve got the opportunity, Guess I will
    just book mark this web site.

  2. Greetings! I’ve been reading your web site for a while now and finally got the bravery to go ahead and
    give you a shout out from Humble Texas! Just wanted to say keep up the excellent work!

  3. RobertSoish表示:

    amoxicillin without rx: amoxicillin 825 mg – amoxicillin 500 capsule

  4. Kob khun atas makluman yang memukau dalam pos blog itu Saya berminat
    untuk menelusuri lebih lanjut tentang perkembangan terkini dalam dunia gambling
    crypto . Saya mempersilakan anda untuk bergabung dengan Kasino
    Crypto di mana anda dapat menikmati pengalaman pertaruhan virtual yang aman dan diuruskan Platform
    ini memuatkan pelbagai perlawanan menarik serta sistem pembiayaan dan pengeluaran yang
    praktikal . Saya mengetahui ia akan menjadi platform yang ideal
    untuk anda mendalami peluang dalam aksi judi cryptographic currency .
    Sila berhubung kami untuk maklumat lanjut dan aksesi .
    Sekian dengan terima kasih

  5. Thanks in support of sharing such a good thinking, piece of writing is nice, thats why i have read it completely

  6. Puff Wow表示:

    What’s up, I check your blogs like every week. Your story-telling style is awesome, keep doing what you’re doing!

    Here is my blog – Puff Wow

  7. Find exclusive deals on stylish kids’ clothing at janie and jack.

  8. Explore a wide range of styles at STAUD Official Site.

  9. Xmzaou表示:

    purchase noroxin online – buy norfloxacin sale confido for sale online

  10. JamesBak表示:

    Paxlovid over the counter: buy paxlovid online – paxlovid india

  11. Discover the perfect blend of style and comfort with pieces from loveshackfancy.

  12. Find unique homeware pieces and fashionable clothing at Clothing & Homeware.

  13. ThomasDet表示:

    https://doxycyclinedelivery.pro/# where can i get doxycycline uk

  14. Приветствую. Подскажите, где почитать полезные блоги о недвижимости? Пока нашел https://konditsioneri-shop.ru

  15. JamesBak表示:

    order amoxicillin 500mg: amoxicillin where to get – can i purchase amoxicillin online

  16. ThomasDet表示:

    http://doxycyclinedelivery.pro/# where can i get doxycycline online

  17. lehenga表示:

    Can I just say what a comfort to find someone who truly knows what they are talking about on the internet. You actually realize how to bring an issue to light and make it important. More people ought to check this out and understand this side of the story. It’s surprising you are not more popular because you surely have the gift.

  18. Experience great savings on Marc Jacobs at the marc jacobs outlet.

  19. JamesBak表示:

    buy amoxicillin without prescription: amoxicillin without a doctors prescription – buy amoxicillin 500mg

  20. ThomasDet表示:

    http://ciprodelivery.pro/# cipro online no prescription in the usa

  21. JamesBak表示:

    paxlovid cost without insurance: Paxlovid buy online – paxlovid pill

  22. Приветствую. Может кто знает, где почитатьразные статьи о недвижимости? Пока нашел https://varmex-spb.ru

  23. ThomasDet表示:

    http://clomiddelivery.pro/# can i get generic clomid without insurance

  24. ThomasDet表示:

    https://paxloviddelivery.pro/# Paxlovid buy online

  25. JamesBak表示:

    paxlovid pill: Paxlovid buy online – paxlovid pharmacy

  26. Domdob表示:

    Всем привет! Может кто знает, где найтиразные блоги о недвижимости? Сейчас читаю https://krovli-12.ru

  27. Flum pebble表示:

    This site was… how do you say it? Relevant!! Finally I’ve found something that helped me. Thank you.

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。