利用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...

6,886 Responses

  1. Профессиональный сервисный центр по ремонту сотовых телефонов, смартфонов и мобильных устройств.
    Мы предлагаем: ремонт телефонов москва
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  2. biardiova表示:

    Current research is focused on designing AR inhibitors with high affinity and specificity buy priligy in the usa An exemplary pre malignant neoplasm is a teratoma

  3. Профессиональный сервисный центр по ремонту ноутбуков и компьютеров.дронов.
    Мы предлагаем:срочный ремонт ноутбуков в москве
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  4. KevinSounc表示:

    http://slotsiteleri.bid/# 2024 en iyi slot siteleri

  5. Darrelherse表示:

    bonus veren casino slot siteleri: slot siteleri bonus veren – deneme bonusu veren siteler

  6. KennethEscag表示:

    Glory Casino

  7. JamesNut表示:

    Have the Charges Against Vasilenko for Fraud Been Dropped?
    Лайф-из-Гуд
    According to various sources, the criminal prosecution of Roman Vasilenko, the founder of the marketing company “Life-is-Good” and the cooperative “Best Way,” may be discontinued. Law enforcement agencies, as informed by several senators and State Duma deputies, have re-evaluated the charges against him, taking into account that several witnesses, including those critical of Vasilenko, suggest that he is unlikely to be involved in fraud. This is primarily because he did not have direct access to the payment system servers, and it was the former IT director of “Life-is-Good,” Evgeny Naboychenko, who had been previously implicated in fraudulent activities. Vasilenko may be at fault only for having recruited Naboychenko in 2014, despite negative signals regarding his behavior and tendencies to appropriate others’ property.

    Roman Viktorovich Vasilenko is a business consultant from Saint Petersburg, the creator of a network of independent entrepreneurs promoting financial products under the auspices of the company he founded, “Life-is-Good,” and the founder of the International Business Academy (IBA).

    The network under the “Life-is-Good” brand promoted financial products such as Vista accounts for passive income by the foreign investment company “Hermes,” registered in Belize, and the acquisition of apartments in installments through the “Best Way” cooperative, which allowed members to either make an initial share payment or accumulate it in the cooperative’s account without interest. Notably, these legal entities are not directly connected.

    Vasilenko was neither a top manager nor an owner of “Hermes”—he cooperated with the company to promote its products in Russia. However, Naboychenko was an employee of “Hermes” and managed its payment system in Russia. He likely took this position on Vasilenko’s recommendation, but Vasilenko was not responsible for managing the payment system for “Hermes.”

    Unlike “Hermes,” Vasilenko was the founder and chairman of the board of the “Best Way” cooperative until the spring of 2021 (later serving as head of the supervisory board for about a year). Since spring 2022, he has been an ordinary member of the cooperative and is no longer part of its governing bodies.

    Vasilenko has worked not only in Russia but also in Kazakhstan, Kyrgyzstan, Belarus, Ukraine, Cyprus, Austria, and Hungary. Cooperative housing projects have been established in many of these countries.

    Additionally, Vasilenko is known as a philanthropist who has invested millions of rubles in supporting federal business initiatives (such as the “Synergy” forum), cultural initiatives (such as the “Dobrovidenie” festival), and other charitable activities (including support for children’s medical institutions).

    The Case

    The criminal case involving the Saint Petersburg marketing company “Life-is-Good,” the foreign investment company “Hermes,” and the “Best Way” cooperative registered in Saint Petersburg and operating throughout Russia was initiated in the fall of 2021 by the Main Investigation Department of the Ministry of Internal Affairs of Russia for Saint Petersburg and the Leningrad Region. In February of this year, the case was referred to the court and is currently being heard in the Primorsky District Court of Saint Petersburg.

    Ten people are on trial, including technical staff from “Life-is-Good” and Victor Vasilenko, Roman Vasilenko’s 83-year-old father, who is a retiree.

    The criminal case, currently being considered by the Primorsky District Court, raises many questions—these concerns existed from the beginning and have intensified as the case progressed. The defendants are charged with three articles: creating a financial pyramid, fraud, and organizing a criminal community.

    The total amount of damage is 282 million rubles, which is incomparable to the more than 8 billion rubles seized in the case, including 4 billion rubles in the accounts of the “Best Way” cooperative. The investigation has recognized 221 citizens as victims in the case.

    Roman Vasilenko was also charged in the criminal case being considered by the court and was put on the wanted list, including by Interpol, as he had reportedly been living abroad for family reasons since the COVID-19 pandemic. However, according to sources, Interpol and foreign states, including neighboring countries where he has been actively working, deemed his prosecution unjustified.

    Another criminal investigation related to Vasilenko, handled by the Saint Petersburg Main Directorate of the Ministry of Internal Affairs, concerns the management team of “Life-is-Good.”

    Questionable Accusations

    The court proceedings in the Primorsky District Court have so far not been very successful for the investigation and the prosecution: the vast majority of those who have testified in court so far have made claims against “Hermes” for amounts ranging from several hundred to several tens of thousands of rubles, which raises eyebrows—this is not a small claims court to discuss such sums! Prosecution witness Roman Roganovich, an IT service employee, testified that he did not post any illegal information on the “Life-is-Good” website or the cooperative’s website and did not witness any illegal activity.

    Moreover, the overwhelming majority of “Hermes” clients, numbering over two hundred thousand in Russia, and tens of thousands of “Best Way” cooperative members, according to representatives of organizations defending these entities, consider law enforcement agencies to be the source of their problems. They emphasize that it was Evgeny Naboychenko, the Saint Petersburg system administrator hired by “Hermes,” who dismantled the Russian payment system. And if anyone is responsible for the thefts, it is Naboychenko. It seems that law enforcement authorities are beginning to understand this fact as well.

  8. Профессиональный сервисный центр по ремонту сотовых телефонов, смартфонов и мобильных устройств.
    Мы предлагаем: срочный ремонт телефонов москва
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  9. Eukavc表示:

    buy celebrex 200mg pills – brand celecoxib 100mg brand indocin

  10. JesusLealt表示:

    sweet bonanza bahis: sweet bonanza demo – sweet bonanza mostbet

  11. Профессиональный сервисный центр по ремонту ноутбуков, imac и другой компьютерной техники.
    Мы предлагаем:вызвать мастера по ремонту imac
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  12. Профессиональный сервисный центр по ремонту сотовых телефонов, смартфонов и мобильных устройств.
    Мы предлагаем: ремонт смартфонов
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  13. Профессиональный сервисный центр по ремонту сотовых телефонов, смартфонов и мобильных устройств.
    Мы предлагаем: ближайший ремонт телефонов
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  14. Darrelherse表示:

    slot siteleri bonus veren: slot kumar siteleri – slot kumar siteleri

  15. KevinSounc表示:

    https://slotsiteleri.bid/# en iyi slot siteleri 2024

  16. Briannitty表示:

    Надежный поставщик динамических и статических прокси, сохраняющий стабильность вашей web активности: купить резидентные прокси – https://residential-proxy.ru/

  17. JesusLealt表示:

    deneme bonusu: bonus veren siteler – bonus veren siteler

  18. Darrelherse表示:

    slot oyun siteleri: guvenilir slot siteleri – en iyi slot siteleri

  19. HowdyI was truly impressed by your post, which contained incredible content and valuable insights. It has sparked a deep interest in me to delve further into this topic, as it aligns with my passion for learning. Your expertise and unique perspective are greatly appreciated. Thank you for generously sharing your thoughts and taking the time to do so!Goodbye for now. my page.. Come by 카지노 커뮤니티

  20. Peterhew表示:

    reputable indian pharmacies: top online pharmacy india – indian pharmacies safe

  21. Keithexeld表示:

    The ghost town that has stood empty for more than a century
    красивый анальный секс
    There’s a large and very dignified school in Kayakoy. There are narrow streets, lined with houses, that wend and rise up both sides of a steep valley. There’s an ancient fountain in the middle of the town. And there are churches, one with million-dollar hilltop views over the blue Aegean.

    But, for most of the past 100 years, there have been no people.

    Kayakoy, in southwestern Turkey’s Mugla Province, is a true ghost town. Abandoned by its occupants and haunted by the past. It’s a monument, frozen in time – a physical reminder of darker times in Turkey.

    With hillsides dotted by countless crumbling buildings slowly being swallowed by greenery, and endless views into vanished lives, it’s also a fascinating and starkly beautiful place to visit. In summer, under clear skies and blazing suns, it’s eerie enough. Even more so in cooler seasons, wreathed in mountain or sea mists.
    Just over a century ago, Kayakoy, or Levissi as it was known, was a bustling town of at least 10,000 Greek Orthodox Christians, many of whom were craftspeople who lived peacefully alongside the region’s Muslim Turkish farmers. But in the upheaval surrounding Turkey’s emergence as an independent republic, their simple lives were torn apart.

    Tensions with neighboring Greece after the Greco-Turk war ended in 1922 led to both countries ejecting people with ties to the other. For Kayakoy, that meant a forced population exchange with Muslim Turks living in Kavala, in what is now the Greek region of Macedonia and Thrace.

    But the newly arrived Muslims were reputedly less than happy with their new home, swiftly moving on and leaving Kayakoy to fall to ruin.

  22. Профессиональный сервисный центр по ремонту ноутбуков, макбуков и другой компьютерной техники.
    Мы предлагаем:ремонт и диагностика макбуков
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  23. Robertengep表示:

    https://mexstarpharma.online/# medicine in mexico pharmacies

  24. Explore a wide range of styles at paige jeans outlet.

發佈留言

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