Build 10 games and learn game development along the way in this fast paced game development course

Get the source code of 12 commercial games, loaded 50+ million times, and learn the secrets of game design

Learn how to make a successful Flash game from a real world example. Fully commented source code

Create realistic Flash physics games from scratch with advanced features, from Angry Birds to Crush the Castle

Quick 3D physics with Away3D 4.1 and Bullet Physics Engine

I really like when 3D and physics are easy to use, because game developers can delight us with new and original creations.

Two years ago I also made a 3D physics game called CubesOut, which was also licensed under the Pod Training name for the Mass Effect 3 official site.

Back to our days, here I am to show you probably the first tutorial you can find online about Away3D 4.1 and its integrated Bullet Physics Engine.

Everyting is commented in the code, which will allow you to create random cubes with the mouse. I know it’s quite simple but we are starting from the very beginning.

Here is the code:

And this is the result:

Click with the mouse to generate random cubes.

To get all required libraries, you have to download Away3D 4.1.0 Alpha and awayphysics.

Download the source code with all required libraries.

Rate this post: 1 Star2 Stars3 Stars4 Stars5 Stars (8 votes, average: 4.75 out of 5)
Loading ... Loading ...
Learn how to make a successful commercial Flash game from a real world example: get the fully commented source code of Globez, a Flash game played millions of times which generated a four figure income. Limited copies available.

Get it now
Be my fan on Facebook and follow me on Twitter! Exclusive content for my Facebook fans and Twitter followers

This post has 5 comments

  1. Aymeric

    on March 7, 2013 at 8:20 pm

    The Citrus Engine (http://citrusengine.com) supports Away3D and AwayPhysics! Take a look there for a small demo http://www.aymericlamboley.fr/blog/playing-with-cadet-editor-and-awayphysics/

  2. Quick 3D physics with Away3D 4.1 and Bullet Physics Engine – Emanuele Feronato | eaflash

    on March 8, 2013 at 10:46 am

    […] on http://www.emanueleferonato.com Share this:TwitterFacebookLike this:Like […]

  3. specter

    on March 8, 2013 at 6:33 pm

    hi
    i want to simulate 4 cable that can to plug in sockets with box2d
    help please
    make new tutorial tnx

  4. Francisco

    on May 9, 2013 at 2:16 pm

    Interesting, I’ve tried to use AwayPhysics, but it did not work well in mobile device (it results in low FPS, both at smartphone and tablet).

    You tested it on mobile devices? It has a good performance? I’m curious because this is an issue in my project. Tks

  5. akos

    on October 6, 2013 at 7:48 pm

    @Francisco
    there are ANE (native extension) versions of the bullet engine and it gives you massive performance boost on mobile.

Thank you for the download!!

I hope you will find it useful and make something interesting out of it

To keep up to date with the blog, why don't you like my Facebook page and follow me on Twitter?

Want to learn more? Don't miss this:

Learn how to make a successful commercial Flash game from a real world example: get the fully commented source code of Globez, a Flash game played millions of times which generated a four figure income. Limited copies available.

Get it now

×