Author Topic: 2D Physics Library  (Read 3837 times)

Offline aroldo

  • Mr. Polyvector
  • ***
  • Posts: 143
    • View Profile
    • APD Consulting, Inc.
2D Physics Library
« 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?
[a http://apd-games.com/][img http://apd-games.com/images/APDGames135.png][/a]
MacBook Pro OS X El Capitan
XCode Version 7
iPhone 6 running  iOS 9
iPad Mini running  iOS 7.1
Galaxy S5
Dell Latitude Windows 8 Enterprise
Palm Pre, Palm Pre2

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10723
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: 2D Physics Library
« Reply #1 on: 2012-Feb-24 »
what's wrong with box2d?

Offline aroldo

  • Mr. Polyvector
  • ***
  • Posts: 143
    • View Profile
    • APD Consulting, Inc.
Re: 2D Physics Library
« Reply #2 on: 2012-Feb-25 »
Nothing is wrong, I just wanted another one to compare features.
[a http://apd-games.com/][img http://apd-games.com/images/APDGames135.png][/a]
MacBook Pro OS X El Capitan
XCode Version 7
iPhone 6 running  iOS 9
iPad Mini running  iOS 7.1
Galaxy S5
Dell Latitude Windows 8 Enterprise
Palm Pre, Palm Pre2

Offline AlienMenace

  • Mr. Polyvector
  • ***
  • Posts: 149
    • View Profile
Re: 2D Physics Library
« Reply #3 on: 2012-Feb-26 »
what's wrong with box2d?

Box2D is great but the version available of GLB is outdated and incomplete.
Apps published: 3

Offline matchy

  • Prof. Inline
  • *****
  • Posts: 1543
    • View Profile
Re: 2D Physics Library
« Reply #4 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?

Offline AlienMenace

  • Mr. Polyvector
  • ***
  • Posts: 149
    • View Profile
Re: 2D Physics Library
« Reply #5 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.
« Last Edit: 2012-Feb-26 by AlienMenace »
Apps published: 3

Offline matchy

  • Prof. Inline
  • *****
  • Posts: 1543
    • View Profile
Re: 2D Physics Library
« Reply #6 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?
« Last Edit: 2012-Feb-26 by matchy »

Offline aroldo

  • Mr. Polyvector
  • ***
  • Posts: 143
    • View Profile
    • APD Consulting, Inc.
Re: 2D Physics Library
« Reply #7 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?
[a http://apd-games.com/][img http://apd-games.com/images/APDGames135.png][/a]
MacBook Pro OS X El Capitan
XCode Version 7
iPhone 6 running  iOS 9
iPad Mini running  iOS 7.1
Galaxy S5
Dell Latitude Windows 8 Enterprise
Palm Pre, Palm Pre2

Offline Qedo

  • Mr. Polyvector
  • ***
  • Posts: 167
  • UNUS SED LEO
    • View Profile
Re: 2D Physics Library
« Reply #8 on: 2012-Feb-26 »
I attach an example with sprites that I hope will be useful
Ciao

[attachment deleted by admin]

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4240
    • View Profile
    • Portfolio
Re: 2D Physics Library
« Reply #9 on: 2012-Feb-26 »
When I run that demo I get tons of errors and it fails.
Am I missing something?

Offline matchy

  • Prof. Inline
  • *****
  • Posts: 1543
    • View Profile
Re: 2D Physics Library
« Reply #10 on: 2012-Feb-26 »
The demo is missing the whole Box2D folder, eg; it requires Box2D.h.

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.

Offline Qedo

  • Mr. Polyvector
  • ***
  • Posts: 167
  • UNUS SED LEO
    • View Profile
Re: 2D Physics Library
« Reply #11 on: 2012-Feb-26 »
Insert the  attached box2d files in the pogram's folder
Ciao


[attachment deleted by admin]

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4240
    • View Profile
    • Portfolio
Re: 2D Physics Library
« Reply #12 on: 2012-Feb-26 »
works fine now!

Offline AlienMenace

  • Mr. Polyvector
  • ***
  • Posts: 149
    • View Profile
Re: 2D Physics Library
« Reply #13 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. :)
« Last Edit: 2012-Feb-26 by AlienMenace »
Apps published: 3

Offline aroldo

  • Mr. Polyvector
  • ***
  • Posts: 143
    • View Profile
    • APD Consulting, Inc.
Re: 2D Physics Library
« Reply #14 on: 2012-Feb-27 »
Qedo,

Grazie Mille!
I will give it a try.

AlienMenace, what is the other platform you switched to? Corona? Shiva?
[a http://apd-games.com/][img http://apd-games.com/images/APDGames135.png][/a]
MacBook Pro OS X El Capitan
XCode Version 7
iPhone 6 running  iOS 9
iPad Mini running  iOS 7.1
Galaxy S5
Dell Latitude Windows 8 Enterprise
Palm Pre, Palm Pre2