利用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,885 Responses

  1. JeremyPsymn表示:

    https://mexstarpharma.online/# mexican online pharmacies prescription drugs

  2. Hermanswoff表示:

    northwest pharmacy canada: canadian world pharmacy – my canadian pharmacy reviews

  3. Peterhew表示:

    mexican online pharmacies prescription drugs: reputable mexican pharmacies online – mexican online pharmacies prescription drugs

  4. Robertengep表示:

    http://mexstarpharma.com/# reputable mexican pharmacies online

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

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

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

  8. Peterhew表示:

    mexico drug stores pharmacies: mexican mail order pharmacies – mexican online pharmacies prescription drugs

  9. Stephenideox表示:

    A Regulated United Europe procura constantemente melhorar o seu desempenho e o nivel de servicos prestados, com base no feedback constante dos clientes e na captura das necessidades do mercado de servicos juridicos em varios paises europeus. O tempo de resposta as perguntas/e-mails dos clientes tambem e reduzido ao minimo.
    Na area dos precos, a Regulated United Europe tambem esta a tentar adaptar-se as necessidades dos clientes, fornecendo um preco fixo para a maioria dos servicos juridicos prestados, apesar de na maioria dos paises europeus serem aplicadas principalmente taxas legais horarias.
    Prestamos aconselhamento juridico e apoio diario aos nossos clientes em todas as fases da implementacao do seu projeto. Solucoes complexas sao desenvolvidas por uma equipe de advogados experientes individualmente para cada cliente.
    financeira. Estamos comprometidos em expandir as fronteiras corporativas tradicionais e oferecer novas oportunidades de startups para clientes em todo o mundo. O nosso objectivo e acrescentar valor aos negocios internacionais, aproveitando as possibilidades ilimitadas da Uniao Europeia durante a sua ascensao tecnologica e facilitando decisoes empresariais perfeitas com apenas um clique de distancia.
    Trabalho em equipe
    Na Regulated United Europe , reconhecemos que a eficacia do nosso trabalho depende dos esforcos coletivos de cada membro da equipa. A nossa visao centra-se no apoio mutuo e na colaboracao diaria, impulsionada pelo envolvimento com clientes, parceiros e colegas. Integramos valores corporativos em todos os aspectos de nossas operacoes, enfatizando a importancia de definir metas realistas, assumir a responsabilidade corporativa pelas decisoes da equipe e acompanhar os projetos ate a conclusao.
    Abordagem individual

  10. Stephenideox表示:

    Noi di Regulated United Europe riconosciamo che l’efficacia del nostro lavoro dipende dagli sforzi collettivi di ciascun membro del team. La nostra visione e incentrata sul supporto reciproco e sulla collaborazione quotidiana, guidata dal coinvolgimento con clienti, partner e colleghi. Integriamo i valori aziendali in ogni aspetto delle nostre operazioni, sottolineando l’importanza di fissare obiettivi realistici, assumerci la responsabilita aziendale per le decisioni del team e portare i progetti fino al completamento.
    Approccio individuale
    Siamo orgogliosi di servire clienti con origini etniche diverse e consideriamo la nostra missione quella di favorire la loro integrazione in prima linea nel business europeo. Adattarsi rapidamente alle fluttuazioni del settore e affrontare le varie sfide sono parte integrante del nostro approccio. Inoltre, sosteniamo una rigorosa etica professionale, ritenendola essenziale per una proficua collaborazione. I nostri servizi sono personalizzati per soddisfare le esigenze specifiche dei clienti internazionali e possono essere ulteriormente personalizzati su richiesta individuale.
    Dinamica
    In un panorama globale in continua evoluzione, l’Regulated United Europe rimane agile e reattiva. Diamo priorita all’efficienza per onorare il tempo dei nostri clienti, fornendo tempestivamente servizi aziendali, contabili e legali. In un contesto di volatilita, l’agilita di un’azienda ne definisce il successo e noi ci impegniamo a fornire un servizio di qualita nel piu breve tempo possibile. Pertanto, ci impegniamo a rispondere a tutte le richieste dei clienti entro poche ore.

  11. GlennSaunk表示:

    Avrupa, dijital ortam? ve finansal yeniliklere ac?kl?g? sayesinde oncu is fikirleri icin bir merkez haline geldi. Geleneksel kurumsal s?n?rlar? genisletmeye ve dunya cap?ndaki musterilerimize yeni baslang?c f?rsatlar? sunmaya kararl?y?z. Amac?m?z, teknolojik yukselisi s?ras?nda Avrupa Birligi’nin s?n?rs?z olanaklar?ndan yararlanarak ve kusursuz is kararlar?n? bir t?k otede kolaylast?rarak uluslararas? ticarete deger katmakt?r.
    Tak?m cal?smas?
    Regulated United Europe‘da, cal?smalar?m?z?n etkililiginin her ekip uyesinin kolektif cabalar?na bagl? oldugunun bilincindeyiz. Vizyonumuz, musteriler, ortaklar ve meslektaslarla olan etkilesimin yonlendirdigi kars?l?kl? destek ve gunluk isbirligine odaklanmaktad?r. Gercekci hedefler belirlemenin, ekip kararlar?nda kurumsal sorumluluk ustlenmenin ve projeleri tamamlanana kadar gormenin onemini vurgulayarak kurumsal degerleri operasyonlar?m?z?n her yonune entegre ediyoruz.
    Bireysel yaklas?m

  12. JeremyPsymn表示:

    https://easyrxindia.shop/# indian pharmacy online

  13. Robertleare表示:

    Challenges in the Licensing Process
    Understanding the different types of gambling licences in Kenya is a key aspect of running a successful gambling business in the country. Each licence type imposes different requirements on operators to ensure legality, integrity and accountability in the gambling industry. It is important for potential investors and operators to thoroughly research these requirements and prepare for the appropriate licensing to ensure a successful and legal business in Kenya.
    Insurance of the deposited money
    The Liechtenstein Business Register is a public register maintained by the Liechtenstein Office of Justice (Amt fur Justiz) and contains basic information about all legal entities registered in the Principality. This registration and information system plays an important role in ensuring business transparency and protecting investors’ rights.
    Period for consideration

    crypto license

    The Cayman Islands continues to attract global attention as a centre for cryptocurrency businesses due to its attractive regulatory environment. Understanding the different types of cryptocurrency licences and their requirements is key for companies looking to grow their operations in this jurisdiction. A responsible approach to the licensing process and strict adherence to regulatory standards will ensure the sustainable development of your business in the Cayman Islands, one of the most favourable locations for cryptocurrency innovation.
    HOW TO GET A CRYPTO LICENSE IN SLOVAKIA
    State fee for application
    What regulation applies to UK-based crypto-asset businesses?
    Step 3: Establishment of the Legal Structure

  14. Hermanswoff表示:

    top 10 pharmacies in india: reputable indian online pharmacy – top 10 online pharmacy in india

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

  16. Robertengep表示:

    https://easyrxcanada.online/# canadian pharmacy in canada

  17. Peterhew表示:

    ed drugs online from canada: canadian pharmacy scam – canadian pharmacy scam

  18. AnthonyPress表示:

    india pharmacy mail order top 10 online pharmacy in india online pharmacy india

  19. JeremyPsymn表示:

    http://mexstarpharma.com/# п»їbest mexican online pharmacies

  20. Robertengep表示:

    https://mexstarpharma.online/# buying prescription drugs in mexico online

  21. AnthonyPress表示:

    pharmacies in mexico that ship to usa п»їbest mexican online pharmacies medication from mexico pharmacy

  22. Hermanswoff表示:

    canadian pharmacies comparison: northwest pharmacy canada – legitimate canadian pharmacies

  23. JeremyPsymn表示:

    https://mexstarpharma.com/# п»їbest mexican online pharmacies

  24. Robertengep表示:

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

  25. AnthonyPress表示:

    is canadian pharmacy legit best canadian pharmacy vipps approved canadian online pharmacy

發佈留言

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