Best physics engine

Software: Away3D 4.x

louis87, Jr. Member
Posted: 27 August 2011 06:18 AM   Total Posts: 46

Hi everyone,

I’m working in a game with physics using Away3D 4.0, and I’ looking for some advice on what is the best physics engine (performance, compatibility with away3D 4.0…).

Thanks!!

P.D. I’m woring now with bulletflash

   

Richard Olsson, Administrator
Posted: 27 August 2011 08:27 AM   Total Posts: 1192   [ # 1 ]

The BulletFlash project has been merged take up into the Away3D family, and is now called AwayPhysics. We will be integrating it very tightly, so if you need 3D physics in Away3D, AwayPhysics will be the best way.

You can find the code on GitHub, in a repository called awayphysics-core-fp11.

   

louis87, Jr. Member
Posted: 27 August 2011 11:50 AM   Total Posts: 46   [ # 2 ]

thanks Richard!

   

cbrown, Jr. Member
Posted: 30 August 2011 09:16 PM   Total Posts: 39   [ # 3 ]

That’s some really cool news!  Can’t wait to sink my teeth into it!

When I try to compile the awayphysics library via one of the awayphysics examples,  I get this error:

“Definition cmodule.AwayPhysics could not be found”

Looks pretty simple to fix though.  Because if you look in the awayphysics package, there is no “cmodule” subdirectory.  Maybe someone forgot to include it when they committed to Github?

Craig

 Signature 
signature_image

whatever is good to know is difficult to learn

   

Somokon, Member
Posted: 30 August 2011 10:47 PM   Total Posts: 75   [ # 4 ]

I think that means you need to get the AwayPhysics.swc file from the libs folder and link it into your project.

   

Avatar
Alejandro Santander, Administrator
Posted: 30 August 2011 11:10 PM   Total Posts: 414   [ # 5 ]

thats right, awayphysics is based on alchemy, so it needs the swc compiled from c++ code

it should be in the lib folder

   

cbrown, Jr. Member
Posted: 31 August 2011 12:54 AM   Total Posts: 39   [ # 6 ]

Thanks guys.  I added the swc to my library paths in Flash Professional and it now compiles without errors.  However now I get the following error at runtime:

VerifyError: Error #1014: Class cmodule.AwayPhysics::CLibInit could not be found.

at global$init()
at VehicleTerrainTest/init()
at VehicleTerrainTest()

Strange…looks like it now finds cmodule.AwayPhysics at compile time but can’t find it at runtime.  Any suggestions?

 Signature 
signature_image

whatever is good to know is difficult to learn

   

Avatar
Alejandro Santander, Administrator
Posted: 31 August 2011 01:05 AM   Total Posts: 414   [ # 7 ]

hmm, that’s weird - perhaps its a Flash issue. I haven’t used Flash for compiling for a while, why don’t you do a little research on how to use an alchemy compiled swc within Flash?

   

cbrown, Jr. Member
Posted: 31 August 2011 09:11 PM   Total Posts: 39   [ # 8 ]

I figured it out.  I had to point to the swc for the “Library Path” instead of the “External Library Path”.  One would think it were up to personal preference, since “Library” should be any libraries you might use only for that project while “External Library Path” says it’s supposed to be for libraries you want to use across different projects.  At least that’s how I read it.  But I couldn’t for the life of me find that particular dialogue window of Flash Professional (Edit>Preferences>Actionscript>Actionscript 3.0 Settings…) in the Flash documentation.  I’d love to know the official definitions.

Oh well.  It works now anyway.  Thanks.

 Signature 
signature_image

whatever is good to know is difficult to learn

   

Avatar
Alejandro Santander, Administrator
Posted: 31 August 2011 09:16 PM   Total Posts: 414   [ # 9 ]

cool! glad you solved it
hope you have fun with AWP, its awesome

   

datouaizi, Member
Posted: 15 November 2011 03:01 PM   Total Posts: 98   [ # 10 ]
cbrown - 31 August 2011 09:11 PM

I figured it out.  I had to point to the swc for the “Library Path” instead of the “External Library Path”.  One would think it were up to personal preference, since “Library” should be any libraries you might use only for that project while “External Library Path” says it’s supposed to be for libraries you want to use across different projects.  At least that’s how I read it.  But I couldn’t for the life of me find that particular dialogue window of Flash Professional (Edit>Preferences>Actionscript>Actionscript 3.0 Settings…) in the Flash documentation.  I’d love to know the official definitions.

Oh well.  It works now anyway.  Thanks.


Hi! I met the same problem, and I used every method ,but it still exit ,cmodule.AwayPhysics could not find,CLibInit is undefined…!oh ! my head !

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X