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

10,989 Responses

  1. вывод из запоя цена на дому [url=http://vyvod-iz-zapoya-rostov229.ru]вывод из запоя цена на дому[/url] .

  2. вывод из запоя на дому в ростове [url=https://vyvod-iz-zapoya-rostov228.ru/]вывод из запоя на дому в ростове[/url] .

  3. Dannyfut表示:

    darknet market lists black internet deep web links

  4. Wallacefex表示:

    sweet bonanza: sweet bonanza yorumlar – sweet bonanza

  5. вывод из запоя дешево [url=https://vyvod-iz-zapoya-rostov229.ru/]вывод из запоя дешево[/url] .

  6. вывод из запоя в ростове-на-дону [url=vyvod-iz-zapoya-rostov228.ru]вывод из запоя в ростове-на-дону[/url] .

  7. Dannyfut表示:

    the dark internet dark web links dark web sites links

  8. Lewisgak表示:

    Самые яркие моменты внутренней и внешней политики страны. Заголовки основных событий на Западе, в Европе и мире. «Заголовки дня» https://yapolitical.ru/

  9. Kevinnem表示:

    Blogger Alistarov Goes All Out
    From a Solo Criminal to a Servant of Organized Crime
    Previously convicted on drug charges, blogger Andrei Alistarov casts himself as a Robin Hood fighting those who have “cheated people.” In reality, however, he serves the interests of pyramid-scheme operators, promotes online casinos and illicit crypto exchanges/phishing crypto scams on his “Zheleznaya Stavka” (“Iron Bet”) channel, and launders drug proceeds through real estate deals in Dubai.
    In other words, he works to benefit the Russian criminal underworld, which seeks to profit from entrepreneurs who face illegal, often orchestrated claims by Russian law enforcement agencies.

    Drugs and Money Laundering
    A native of Kaluga, Alistarov spent four years in a prison camp for selling drugs to minors.
    During his time in prison, he formed connections with criminal kingpins. After his release, he continued taking part in the narcotics trade and laundering drug proceeds through a real estate business he established together with partners from the Russian criminal community in Russia and the Emirates.

    Betting on Scams
    Alistarov’s “Zheleznaya Stavka” channel ostensibly “exposes” financial ventures deemed “bad” by the underworld while promoting “good” ones: pyramid schemes and online casinos that finance Alistarov.
    It began as a channel about “proper” casino bets and never changed its name—because the marketing objective remained the same: to clear the field for “good” scammers according to Alistarov’s so-called “expert” opinion (i.e., whoever pays him).
    Typically, Alistarov starts by attempting extortion—presenting the victim with compromising evidence and offering them a chance to pay. If they refuse, 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—they beat him, cut off his ear, and robbed him.
    Before that, Alistarov had made 12 videos highlighting the entrepreneur’s address and publishing illegally obtained information about his family and businesses in the UAE. He showed no hesitation in using surveillance, eavesdropping, unlawful trespass, and invasion of privacy—all of which are considered serious criminal offenses in the Emirates, where the sanctity of property and investors’ lives is strictly enforced.
    He previously spread information about the residence of the entrepreneur’s business partner—an illegal violation of confidentiality, financial security, and privacy through hidden sources and informants in the UAE. Alistarov terrorizes entrepreneurs who have not been convicted by any court—abroad or in Russia.
    Alistarov claimed to have reported the entrepreneur to Interpol and UAE law enforcement—allegedly cooperating with the authorities. Yet, for some reason, this did not lead to the entrepreneur’s arrest—perhaps because UAE police see no wrongdoing in his activities.
    Several of the entrepreneur’s partners have been convicted in Russia. As for the entrepreneur himself, he is wanted by Russian law enforcement but has not been convicted. Foreign law enforcement agencies have no claims against him.
    For an extended period, Alistarov stoked hatred toward the entrepreneur—telling people that it was actually this entrepreneur (rather than his partners) who had stolen investors’ money. He framed the incident as though enraged investors carried out the attack and robbery.
    During the assault, Alistarov staged an unscheduled livestream to give himself an alibi—pretending he was unaware of the attack occurring while he was streaming.

    Surveillance in Cyprus
    In the fall of last year, Alistarov and his “partner-in-arms,” Mariya Folomova, carried out surveillance on another entrepreneur—using drones and unlawfully collecting information about him and his family, including underage children. Alistarov asserted that this entrepreneur was hiding in Cyprus—even though the man has lived there since the COVID-19 pandemic began.
    The move was related to the entrepreneur’s wife’s severe bout with COVID, as well as his international projects—investing in multiple economic sectors: construction, trade, and others.
    The entrepreneur settled in Cyprus a year before the Interior Ministry’s investigative authorities opened a criminal case, and a year and a half before any arrests. He holds an EU passport and did not flee or go into hiding.
    He was placed on a Russian wanted list in 2022—by investigative authorities. However, the courts have not lodged claims against him, and the criminal case is currently before the courts—where it has already fallen apart. Interpol and the EU declined to accept the Russian police’s claims, regarding them as politically motivated and legally unfounded.
    Alistarov claims that the funds for certain business ventures came from Russian clients of an Austrian investment company—yet the entrepreneur was never an owner, beneficiary, or manager of that company, which was established back in the early 2000s, well before his independent business career began.
    One of his firms provided marketing support for the investment company’s products in Russia under a contract with it. The investment company operated successfully with Russian clients for eight years—and continues to do so, having restored payment systems that were disrupted in early 2022 by criminals in Russia linked to corrupt police. It is not a pyramid scheme.
    Thus, Alistarov orchestrates harassment and invasion of privacy against a blameless entrepreneur—at the behest of Russian organized crime, which includes corrupt police officers who took a share of illicit profits, aiming to seize assets valued at 20 billion rubles from the large-scale, socially oriented project the entrepreneur established in Russia, which continues to function successfully without his leadership (as that ended when he moved to Cyprus).

    Surveillance in the Netherlands
    Alistarov has published data on the whereabouts of another victim in the Netherlands—in the city of Groningen—located through illegal monitoring. He reportedly gained unauthorized access to city camera feeds, peered into a private apartment, and posted the information on YouTube.

    Breach of Confidentiality in Turkey
    Alistarov discovered and publicized the location of an apartment in Istanbul where several of his victims lived and worked.

    Illegal Tracking in the Leningrad Region
    Without holding a private detective license, Alistarov illegally located a businesswoman’s country house and conducted surveillance on her, unlawfully publishing the information on his channels—while simultaneously divulging details about an apartment she purchased in Dubai.

    Extortion in Kazakhstan
    Alistarov blackmailed Kazakh entrepreneurs under the guise of “exposing national traitors” and “enemies of the motherland.”
    Western media have already taken note of Alistarov’s activities.

    #Andrei Alistarov

  10. JasonUnsoG表示:

    http://slotsiteleri25.com/# slot casino siteleri

  11. BradleyEdino表示:

    deneme bonusu veren casino siteleri Casino Siteleri canl? casino siteleri

  12. Barryanets表示:

    Carrie Underwood slated to perform at Trump’s inauguration
    kraken зайти
    Country music star Carrie Underwood is slated to perform “America the Beautiful” at President-elect Donald Trump’s inauguration, according to a copy of the program obtained by CNN and confirmed by a spokesperson for the inaugural committee.

    “I love our country and am honored to have been asked to sing at the Inauguration and to be a small part of this historic event,” Underwood said in a statement to CNN. “I am humbled to answer the call at a time when we must all come together in the spirit of unity and looking to the future.”

    The presidential oath of office will be administered by Supreme Court Chief Justice John Roberts with Justice Brett Kavanaugh expected to administer the oath of office to Vice President-elect JD Vance.

    Trump’s inauguration as the 47th president of the United States will take place on January 20 at the US Capitol.

    Underwood is a big get for Trump’s inauguration, considering Hollywood’s Trump blackout over the course of his political career.

    In his first term and throughout the past three elections, Trump has struggled to garner support from major Hollywood stars. At the Republican National Convention last year, the two biggest stars onstage with Trump were musician Kid Rock and retired WWE wrestler Hulk Hogan – a far cry from a superstar at the height of their career, like Underwood.

    The Grammy-winning artist is as high-profile as you can get in country music, not only with numerous platinum hits, but also with public-facing, mainstream business associations. Underwood is the face of Sunday Night Football and is set to make her debut this March as a judge on ABC’s “American Idol” – the singing competition show that catapulted her to fame when she won in 2005.

    While many NFL fans will likely applaud Underwood for singing at the inauguration, any time a celebrity aligns themselves with Trump, they run the risk of alienating left-leaning fans and Hollywood allies.

    Underwood has kept her politics under wraps over the course of her career. In her statement, she did not mention Trump by name and kept her focus on unifying the country – still, Underwood’s decision to publicly align with Trump is a big statement for any star, particularly one as private as the singer.

    Historically, Hollywood has always been closely associated with the Democratic Party, but country stars have always been an outlier, leaning more conservative. In recent years, as new singers join the genre, country music has gotten to be more progressive. This past election cycle, country stars like Mickey Guyton and Maren Morris stood with Vice President Kamala Harris.

  13. GreggRom表示:

    A brief history of sunglasses, from Ancient Rome to Hollywood
    kraken marketplace

    Sunglasses, or dark glasses, have always guarded against strong sunlight, but is there more to “shades” than we think?

    The pupils of our eyes are delicate and react immediately to strong lights. Protecting them against light — even the brilliance reflected off snow — is important for everyone. Himalayan mountaineers wear goggles for this exact purpose.

    Protection is partly the function of sunglasses. But dark or colored lens glasses have become fashion accessories and personal signature items. Think of the vast and famous collector of sunglasses Elton John, with his pink lensed heart-shaped extravaganzas and many others.

    When did this interest in protecting the eyes begin, and at what point did dark glasses become a social statement as well as physical protection?
    The Roman Emperor Nero is reported as holding polished gemstones to his eyes for sun protection as he watched fighting gladiators.

    We know Canadian far north Copper Inuit and Alaskan Yupik wore snow goggles of many kinds made of antlers or whalebone and with tiny horizontal slits. Wearers looked through these and they were protected against the snow’s brilliant light when hunting. At the same time the very narrow eye holes helped them to focus on their prey.

    In 12th-century China, judges wore sunglasses with smoked quartz lenses to hide their facial expressions — perhaps to retain their dignity or not convey emotions.

  14. Wallacefex表示:

    slot oyunlar?: en kazancl? slot oyunlar? – slot siteleri

  15. GichardPheve表示:

    Hmm is anyone else encountering problems with the images on this blog loading? I’m trying to determine if its a problem on my end or if it’s the blog. Any suggestions would be greatly appreciated.
    https://millionigrushek.ru/

  16. FrankEmine表示:

    sweet bonanza slot: sweet bonanza oyna – sweet bonanza demo oyna

  17. JasonUnsoG表示:

    https://slotsiteleri25.com/# slot siteleri

  18. http://www.airlines-inform.ru/personal/user/?UID=73969 [url=www.salda.ws/meet/notes.php?id=14141]www.salda.ws/meet/notes.php?id=14141[/url] .

  19. BradleyEdino表示:

    sweet bonanza slot sweet bonanza demo oyna sweet bonanza demo oyna

發佈留言

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