GLBasic forum

Main forum => GLBasic - en => Topic started by: aroldo on 2012-Feb-23

Title: 2D Physics Library
Post by: aroldo on 2012-Feb-23
Here GLBasic community!

I would like to know if there is a 2D physics library that is compatible with GLBasic,
Besides the Box2D posted by Kitty Hello http://www.glbasic.com/forum/index.php?topic=3561.0 (http://www.glbasic.com/forum/index.php?topic=3561.0)?
Title: Re: 2D Physics Library
Post by: Kitty Hello on 2012-Feb-24
what's wrong with box2d?
Title: Re: 2D Physics Library
Post by: aroldo on 2012-Feb-25
Nothing is wrong, I just wanted another one to compare features.
Title: Re: 2D Physics Library
Post by: AlienMenace on 2012-Feb-26
Quote from: Kitty Hello on 2012-Feb-24
what's wrong with box2d?

Box2D is great but the version available of GLB is outdated and incomplete.
Title: Re: 2D Physics Library
Post by: matchy on 2012-Feb-26
Quote from: AlienMenace on 2012-Feb-26
Box2D is great but the version available of GLB is outdated and incomplete.
:zzz:
Right then, how far did you get with it? What complex design do you have that require more than that? What do you think about the successful prototypes and productions?
Title: Re: 2D Physics Library
Post by: AlienMenace on 2012-Feb-26
I would like to be able to turn a wheel with a motor so I can create a complex
machine or even a not-so-complex one. Pulleys and prismatic joints would be
nice too. 

Prototypes and productions? Sorry, I'm not sure what that means.
Title: Re: 2D Physics Library
Post by: matchy on 2012-Feb-26
Quote from: AlienMenace on 2012-Feb-26
I would like to be able to turn a wheel with a motor so I can create a complex
machine or even a not-so-complex one. Pulleys and prismatic joints would be
nice too. 

Prototypes and productions? Sorry, I'm not sure what that means.

Seriously? Do you have any sample apps? Pulleys and motors isn't game talk and it depends on the technique and design as much is still possible with Box2D. What's wrong with a simple pool game for starters?
Title: Re: 2D Physics Library
Post by: aroldo on 2012-Feb-26
Gernot,

I am looking for a Physics engine that I can use with sprites.
Do have a Box2D example that with sprites? Does Box2D only works with rectangles, circles and polygons drawn on the fly?
Title: Re: 2D Physics Library
Post by: Qedo on 2012-Feb-26
I attach an example with sprites that I hope will be useful
Ciao

[attachment deleted by admin]
Title: Re: 2D Physics Library
Post by: erico on 2012-Feb-26
When I run that demo I get tons of errors and it fails.
Am I missing something?
Title: Re: 2D Physics Library
Post by: matchy on 2012-Feb-26
The demo is missing the whole Box2D folder, eg; it requires Box2D.h.

Quote from: aroldo on 2012-Feb-26
I am looking for a Physics engine that I can use with sprites.

Sprites and 3D are not in the physics "engine" but in GLB.
Title: Re: 2D Physics Library
Post by: Qedo on 2012-Feb-26
Insert the  attached box2d files in the pogram's folder
Ciao


[attachment deleted by admin]
Title: Re: 2D Physics Library
Post by: erico on 2012-Feb-26
works fine now!
Title: Re: 2D Physics Library
Post by: AlienMenace on 2012-Feb-26
I said that Box2D on GLB is outdated and incomplete, I didn't say it was unusable.

Not game talk?

Games that use motors and prismatic joints like those side-view motorcycle games:
http://www.emanueleferonato.com/2009/04/06/two-ways-to-make-box2d-cars/

and pulley joints on display in Limbo:
http://www.youtube.com/watch?v=mOnTwgMDmI8

I had to move development of my platform game over to a different
language because it needed motors and now has pulleys implemented
as well.

I'm not a beginner and I don't need to start out with a pool game but
thanks for the suggestion. :)
Title: Re: 2D Physics Library
Post by: aroldo on 2012-Feb-27
Qedo,

Grazie Mille!
I will give it a try.

AlienMenace, what is the other platform you switched to? Corona? Shiva?
Title: Re: 2D Physics Library
Post by: AlienMenace on 2012-Feb-27
Out of respect for Gernot, I'd rather not say. Hope you understand. :)
Title: Re: 2D Physics Library
Post by: matchy on 2012-Feb-27
Quote from: AlienMenace on 2012-Feb-26
I'm not a beginner and I don't need to start out with a pool game but
thanks for the suggestion. :)

Hope I helped.
Title: Re: 2D Physics Library
Post by: Kitty Hello on 2012-Feb-27
I think a newer version of Box2D should work by simply replacing the files.
I have one "box2D.cpp" file that's from me which includes all the cpp files into one file for easier compiling.
Title: Re: 2D Physics Library
Post by: aroldo on 2012-Feb-27
Gernot,

Box2D is at version 2.2.1.
http://code.google.com/p/box2d/downloads/detail?name=Box2D_v2.2.1.zip&can=2&q= (http://code.google.com/p/box2d/downloads/detail?name=Box2D_v2.2.1.zip&can=2&q=)

Is it just a matter to update the C++ code in the Box2D for GLBasic?
Title: Re: 2D Physics Library
Post by: djtoon on 2012-Feb-28
:) how do i update?