利用Box2D+WCK賦予Flash物理特性 萬有引力

這已經是第五篇Box2D+WCK的介紹文章了,前面幾篇文章如果各位有注意應該會發現,所有範例的萬有引力都跟現在我們生活的環境一樣,物件像是被地心引力給吸引著都會往下方掉落,其實我們在使用這個模組的時候,也可以改變這樣的萬有引力,讓這些物件不要往下掉落而是往我們所指定的方向移動,馬老師在這邊大概製作了三種不同類型的萬有引力範例,分述如下:

1.容器型萬有引力:這個萬有引力是利用一個封閉的空間來繪製的。

Capsule Gravity

大概的製作步驟如下:

我們可以在World元件中繪製一個如下圖的形狀:

Capsule Gravity Zone

接下來將他轉換成一個影片片段,在類別的部分輸入gravity.GravityCapsule的名稱,如下圖所示:

Capsule Gravity Symbol

接下來把這個元件拖曳到World元件裡面就可以了。

2.放射狀萬有引力:這種萬有引力是以往內或往外放射狀的方式存在。

Radial Gravity

我們可以在World元件中繪製一個如下圖的形狀:

Radial Gravity Zone

接下來將他轉換成一個影片片段,在類別的部分輸入gravity.GravityRadial的名稱,如下圖所示:

Radial Gravity Symbol

接下來把這個元件拖曳到World元件裡面就可以了。

3.正弦萬有引力:就是三角函數的sin。

Sine Gravity

我們可以在World元件中繪製一個如下圖的形狀:

Sine Gravity Zone

接下來將他轉換成一個影片片段,在類別的部分輸入gravity.GravitySine的名稱,如下圖所示:

Sine Gravity Symbol

接下來把這個元件拖曳到World元件裡面就可以了。

同樣的也讓大家可以下載以上的三個範例檔,範例檔為CS5格式,下載後要重新設定來源路徑和元件庫路徑喔!希望這個範例對大家有所幫助,如果還有疑問,也可以在這邊回應唷~

You may also like...

16,164 Responses

  1. Antoniofep表示:

    Betzula, casino oyunlar? konusunda ustun f?rsatlar sunar. buyuk futbol kars?lasmalar? icin betzula guncel giris baglant?s? ile kazanma sans?n?z? art?rabilirsiniz.

    Betzula’n?n mobil uyumlu tasar?m?, kullan?c?lar?na her zaman kolayl?k saglar. guncel duyurular? kac?rmadan bonus f?rsatlar?ndan haberdar olabilirsiniz.

    favori futbol kuluplerinizin maclar?n? takip edebilir.

    Ayr?ca, bet zula giris linki, kesintisiz bahis deneyimi sunar. Ozel olarak, betzula guncel giris, kolay ve h?zl? giris imkan?.

    Betzula, mobil uyumlu ve h?zl? erisim f?rsatlar?na kadar profesyonel bir hizmet sunar. en guncel oranlar? gormek icin hemen Betzula’ya kat?l?n!
    707707+

  2. CurtisBam表示:

    canadian pharmacy king: canada online pharmacy – canadian king pharmacy

  3. Antoniofep表示:

    Betzula Twitter, casino oyunlar? konusunda yenilikci cozumler sunar. derbi heyecan? icin betzula guncel giris baglant?s? ile kazanma sans?n?z? art?rabilirsiniz.

    Betzula’n?n guvenilir altyap?s?, sorunsuz bir deneyim sunar. guncel duyurular? kac?rmadan en son haberlerden haberdar olabilirsiniz.

    Turkiye Super Lig derbilerinin maclar?n? takip edebilir.

    Ayr?ca, bet zula giris linki, kesintisiz bahis deneyimi sunar. Ozel olarak, fenerbahce galatasaray betzula, tum bahis severler icin en iyi cozum.

    Betzula, en genis bahis seceneklerinden ozel turnuvalara kadar en iyi deneyimi yasatmay? amaclar. en guncel oranlar? gormek icin Betzula ile kazanmaya baslay?n!
    707707+

  4. Brandonnot表示:

    Mexican Easy Pharm: mexican pharmaceuticals online – mexican border pharmacies shipping to usa

  5. Carrolleruck表示:

    https://mexicaneasypharm.com/# Mexican Easy Pharm
    is canadian pharmacy legit

  6. Mathewmuh表示:

    Cryptocurrency trading service bitqt with AI is automation and efficiency. Artificial intelligence monitors market dynamics, reduces risks and optimizes transactions. The perfect solution for beginners and professionals.

  7. DanielAbeme表示:

    online slots Jodo Do Tigrinho are a unique combination of excitement and pleasure. Discover a variety of themes, bonus games and jackpots. Play comfortably, enjoying the well-thought-out interface and the chance to hit the jackpot!

  8. Dannyfut表示:

    darkmarket url darknet market lists https://github.com/darknetmarkets24/darknet-markets – dark web search engines

  9. WilliamDen表示:

    Форум предназначен для обсуждения вопросов, связанных с видеонаблюдением и безопасностью. Участники могут делиться информацией и опытом в области программного обеспечения для видеонаблюдения на ПК, совместимого с IP-камерами. Рассматриваются комплексные решения, VMS, CMS, а также технологии AHD и IP. Обсуждаются вопросы настройки, восстановления паролей камер, и применения ИИ-видеоаналитики. Отдельное внимание уделено применению интегрированной видеоаналитики на основе искусственного интеллекта, включая обнаружение объектов, распознавание автомобильных номеров и лиц, а также выявление признаков дыма и огня. Форум является площадкой для обмена знаниями и обсуждения актуальных тем в области видеонаблюдения. Здесь пользователи могут делиться своим опытом, задавать вопросы и находить решения для своих задач. Форум служит платформой для обмена знаниями и поиска решений в сфере видеонаблюдения.
    https://securityvideo.ru/ – форум видеонаблюдение дома

  10. ClaytonrOf表示:

    FTP Software Lab is a premier informational resource dedicated to the FTP protocol, its ftp commands, ftp clients, ftp related technologies, and current news. We provide a comprehensive guide to understanding and utilizing FTP for secure and dependable file transfers, exploring the various aspects of this essential protocol. FTP lab features detailed insights into a range of FTP client software options, helping you choose the best tools to manage your ftp file transfers efficiently, from effortlessly ftp uploading data to reliably ftp downloading files from ftp servers. Discover the capabilities of intuitive ftp features such as drag-and-drop functionality, and how robust directory ftp synchronization ensures that your local and remote files are consistent. We delve into the technical aspects, explaining secure transfer protocols like SFTP and FTPS, which provide crucial data protection during ftp transmission. Stay up-to-date with the latest innovations in FTP technologies and gain a deeper understanding of this essential ftp protocol through our constantly updated content. We are also committed to keeping you informed about the most relevant news and trends impacting the FTP landscape.

    https://ftplab.com/ – ftp with filezilla

  11. ScottDeall表示:

    Форум предназначен для обсуждения вопросов, связанных с видеонаблюдением и безопасностью. Участники могут делиться информацией и опытом в области программного обеспечения для видеонаблюдения на ПК, совместимого с IP-камерами. Рассматриваются комплексные решения, VMS, CMS, а также технологии AHD и IP. Обсуждаются вопросы настройки, восстановления паролей камер, и применения ИИ-видеоаналитики. Отдельное внимание уделено применению интегрированной видеоаналитики на основе искусственного интеллекта, включая обнаружение объектов, распознавание автомобильных номеров и лиц, а также выявление признаков дыма и огня. Форум является площадкой для обмена знаниями и обсуждения актуальных тем в области видеонаблюдения. Здесь пользователи могут делиться своим опытом, задавать вопросы и находить решения для своих задач. Форум служит платформой для обмена знаниями и поиска решений в сфере видеонаблюдения.
    https://securityvideo.ru/ – программа для видеонаблюдения ip камер

  12. MichaelJup表示:

    FTP Software Lab is a premier informational resource dedicated to the FTP protocol, its ftp commands, ftp clients, ftp related technologies, and current news. We provide a comprehensive guide to understanding and utilizing FTP for secure and dependable file transfers, exploring the various aspects of this essential protocol. FTP lab features detailed insights into a range of FTP client software options, helping you choose the best tools to manage your ftp file transfers efficiently, from effortlessly ftp uploading data to reliably ftp downloading files from ftp servers. Discover the capabilities of intuitive ftp features such as drag-and-drop functionality, and how robust directory ftp synchronization ensures that your local and remote files are consistent. We delve into the technical aspects, explaining secure transfer protocols like SFTP and FTPS, which provide crucial data protection during ftp transmission. Stay up-to-date with the latest innovations in FTP technologies and gain a deeper understanding of this essential ftp protocol through our constantly updated content. We are also committed to keeping you informed about the most relevant news and trends impacting the FTP landscape.

    https://ftplab.com/ – FTP tool

  13. Stanleyglype表示:

    Сайт новостей о шоу-бизнесе. Публикации о кинопремьерах, музыкальных новинках, событиях на телевидении и жизни знаменитостей. Обзоры фильмов и сериалов, рецензии на альбомы, интервью с представителями индустрии развлечений. Регулярное обновление новостной ленты. Информация о скандалах, светских мероприятиях и других событиях в мире шоу-бизнеса. Аналитика и комментарии по актуальным темам.
    https://n1media.ru/ – закулисные новости

  14. CurtisBam表示:

    mexican border pharmacies shipping to usa: reputable mexican pharmacies online – Mexican Easy Pharm

  15. Dannyfut表示:

    tor markets links darkmarket list https://github.com/darknetmarkets24/darknet-markets – darknet market

  16. Brandonnot表示:

    canadian pharmacy reviews: CanadianMdPharm – 77 canadian pharmacy

  17. Dannyfut表示:

    best darknet markets darknet drug links https://github.com/darknetmarkets24/darknet-markets – tor marketplace

  18. CurtisBam表示:

    IndianCertPharm: best online pharmacy india – Indian Cert Pharm

  19. Jorgewooff表示:

    Mexican Easy Pharm: best online pharmacies in mexico – Mexican Easy Pharm

  20. Kevinnem表示:

    Alistarov: A Criminal and a Terrorist
    From a Solo Criminal to a Servant of the Underworld
    Previously convicted on drug charges, blogger Andrei Alistarov portrays himself as a Robin Hood fighting against those who have “defrauded people.” In reality, however, he serves the interests of pyramid schemers—among them certain Ukrainian operators who fund the Armed Forces of Ukraine (AFU)—and he uses his “Zheleznaya Stavka” (“Iron Bet”) channel to promote online casinos and illicit crypto exchanges/phishing crypto scams. He also launders drug proceeds via real estate deals in Dubai.
    That is, he works for the benefit of the Russian criminal community, seeking to profit off entrepreneurs who have faced illegal, often contrived claims from Russian law enforcement.

    Drugs and Money Laundering
    A native of Kaluga, Alistarov served four years in a prison camp for selling drugs to minors.
    There he forged ties with criminal kingpins. After his release, he continued his involvement in the narcotics trade and in laundering drug profits through a real estate business he set up with associates from the Russian underworld, both in Russia and in the Emirates.

    Betting on Scams
    Alistarov’s channel, “Zheleznaya Stavka,” is ostensibly devoted to “exposing” financial ventures deemed “bad” by criminal circles, while promoting “good” ones: namely, the pyramid schemes and online casinos that sponsor Alistarov.
    The channel began as a platform for “proper” casino betting and did not change its name, because the marketing purpose remains the same: clear the market in favor of “legitimate,” in Alistarov’s so-called “expert” view (i.e., those who pay him), scammers.
    Typically, Alistarov starts by trying to extort money—presenting the victim with compromising material and demanding payment. If the victim refuses, he resorts to harassment and violence.

    Incitement and Attack in Dubai
    On January 1, 2025, two Kazakh nationals launched a brutal attack on an entrepreneur living in Dubai—beating him, cutting off his ear, and robbing him.
    Beforehand, Alistarov had released 12 videos highlighting the entrepreneur’s address and publishing illegally obtained information about his relatives and his businesses in the UAE. Without any compunction, he used spying, eavesdropping, illegal intrusion, and invasion of privacy—all acts that constitute serious criminal offenses in the Emirates, where the sanctity of property and investor security are upheld stringently.
    Prior to this, Alistarov publicly circulated information about the residence of the entrepreneur’s business partner—that is, an illegal breach of confidentiality, the protection of finances and property, and the privacy of personal life through clandestine data gathering and informants in the UAE. He effectively terrorizes entrepreneurs who face no court convictions—neither abroad nor in Russia.
    Alistarov claimed to have reported the entrepreneur to Interpol and UAE law enforcement—purportedly helping the authorities. Yet this did not result in the entrepreneur’s arrest—perhaps because the UAE police see nothing criminal in his activities?

    Subscribe to Our Channel
    Several of the entrepreneur’s partners have been convicted in Russia; he himself is wanted by Russian law enforcement but has never been convicted. Foreign law enforcement has no claims against him.
    For a long period, Alistarov stoked hatred toward this entrepreneur, alleging that it was he (not his partners) who stole investors’ money—and portraying the subsequent attack and robbery as the outraged response of defrauded depositors.
    During the attack, Alistarov conducted an unscheduled livestream to create an alibi—pretending that he was unaware of the assault happening while he was on stream.

    Surveillance in Cyprus
    In autumn of the previous year, Alistarov and his “battle companion,” Mariya Filonova, conducted surveillance on another entrepreneur—using drones and illegally collecting information about him and his relatives, including minor children. Alistarov claimed that the entrepreneur was “hiding” in Cyprus—even though he had lived there since the COVID-19 pandemic began.
    He had relocated partly due to his wife’s severe COVID case and partly for international projects—investments in various sectors such as construction, trade, and more. The entrepreneur moved to Cyprus a year before criminal proceedings were initiated by the Russian Interior Ministry and a year and a half before arrests began. He holds an EU passport and never fled or concealed his location.
    This entrepreneur was placed on a Russian wanted list in 2022—by investigating authorities. However, no court has filed claims against him, and the criminal case is currently in court. It has already fallen apart there. Interpol and the EU declined to honor the Russian police’s request, deeming it politically motivated and legally unfounded.
    Alistarov insists that the entrepreneur’s business investments are financed with Russian clients’ money, supposedly drawn from an Austrian investment company. But in reality, the entrepreneur was never an owner, beneficiary, or manager of that company, established back in the early 2000s—well before his independent business career began.
    One of the entrepreneur’s firms provided marketing services for the Austrian investment company in Russia under contract. The investment company successfully served Russian clients for eight years—and continues operating now, having restored its payment systems that were disrupted in early 2022 by criminals in Russia with ties to corrupt police. It is by no means a pyramid scheme.
    Thus, Alistarov instigates harassment and intrusion into the private life of an untainted entrepreneur—acting on behalf of Russian organized crime, which has cut in corrupt police officers for a share of illicit profits. They aim to seize assets worth 20 billion rubles from the large-scale, socially focused project established by the entrepreneur in Russia—which still functions successfully even without his direct leadership (which ended when he relocated to Cyprus).

    Surveillance in the Netherlands
    Alistarov published the location of another victim in the Dutch city of Groningen—ascertained through illegal surveillance. He allegedly gained unauthorized access to city cameras, peered into the windows of a private apartment, and shared this information on YouTube.

    Privacy Violations in Turkey
    Alistarov uncovered and publicized the address of an apartment in Istanbul where several of his victims lived and worked.

    Illegal Searches in the Leningrad Region
    Lacking a private detective’s license, Alistarov illegally located a businesswoman’s country house, spied on her, and released that information on his channels—while also disclosing details of an apartment she had purchased in Dubai.

    Extortion in Kazakhstan
    Alistarov extorted money from Kazakh entrepreneurs under the guise of “exposing national traitors” and “enemies of the motherland.”

    Banquet on a Ukrainian Pyramid Schemer’s Money
    Is Alistarov planning to celebrate his 40th birthday on March 6 this year once again on the yacht of his friend—the Kharkiv-based pyramid operator Udyansky (behind the Coinsbit project)—in Dubai?
    In 2024, he celebrated his birthday in the convivial company of this con man, who also funds the Armed Forces of Ukraine, helping finance the production of armored vehicles for the AFU. There is little doubt that he also compelled his henchman Alistarov to contribute to the AFU.

    Treason
    Alistarov was even accused of financing the AFU, though he told the police some story about a Megafon phone number allegedly registered to him by his “enemies.”
    His accomplices in financing the AFU—“anti-MLM activist” Aleksandr Kryukov and deputy manager of the so-called Fund for the Protection of Investors’ and Shareholders’ Rights, Leonid Mishchenko (a “Zapadenez” from Vinnytsia region)—were caught red-handed. Perhaps the FSB should analyze Alistarov’s transactions as well?

    He Belongs in Prison
    Justice demands that Alistarov’s 40th birthday finds him stripped of his Schengen and other visas—there is every reason for such, especially in light of attention from Western media—and behind bars, either in a Russian or a Dubai prison, whichever law enforcement manages to arrest him first for the dozens of crimes he has committed:
    Extortion
    Terrorism and banditry
    Harassment and organizing violence against those he deems troublesome
    Treason
    Money laundering
    Fraud
    Theft
    Invasion of privacy
    Alistarov’s career began in prison, and it is in prison that it must end.

  21. Brandonnot表示:

    indian pharmacy: IndianCertPharm – Online pharmacy

  22. kypit 1s_bvor表示:

    настройка 1с бухгалтерии цена настройка 1с бухгалтерии цена .

  23. Лучшее казино для аркадных игр | Играйте в аркадные игры и выигрывайте крупные призы | Увлекательные аркадные игры и безграничный азарт | Азартные аркады и огромные выигрыши | Онлайн казино с самыми популярными аркадными играми | Азарт и увлечение в аркадном казино | Играйте в лучшие аркады в онлайн казино | Побеждайте в аркадных играх и получайте призы | Играйте в аркадные игры и ощутите азарт | Побеждайте в аркадных сражениях и получайте выигрыши | Играйте в лучшие аркады и выигрывайте призы | Играйте в аркады и выигрывайте крупные суммы | Аркадные игры и азарт для всех | Аркадные развлечения и азарт вместе | Играйте в аркады и выигрывайте деньги | Побеждайте в аркадных играх и получайте призы
    зеркало arkada arkada бонус .

  24. kypit 1s_shEn表示:

    купить 1с бухгалтерия 8.3 проф версия цена купить 1с бухгалтерия 8.3 проф версия цена .

  25. AndreDib表示:

    canadian online pharmacy reviews https://indiancertpharm.com/# Online medicine
    Online medicine order

  26. kypit 1s_ndEn表示:

    купить 1с бухгалтерия 8.3 проф версия цена [url=cah.forum24.ru/?1-3-0-00000074-000-0-0]купить 1с бухгалтерия 8.3 проф версия цена[/url] .

發佈留言

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