Pages: 1
Author Topic: The World of Box2D Physics  (48,923 Views)
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Posted on: February 24, 2013, 03:44:41 PM
]

We have a Box physics engine in the works you guys, I'll finish it up when I have more time  (Y)
Offline (Unknown gender) eejin

Member
Joined: Feb 2013
Posts: 8
View profile
Reply #1 Posted on: February 24, 2013, 06:07:51 PM
Nice. How does it perform compared to game maker?
(and hurry up on wxwidgets would ya :P)
Offline (Unknown gender) TheExDeus

Developer
Joined: Apr 2008
Posts: 1,860
View profile
Reply #2 Posted on: February 24, 2013, 07:41:35 PM
Looks nice. Does box2d allow things like soft-bodies?
And when added to ENIGMA I won't have to compile the source from their site right? I guess this will be as an extension.
Offline (Unknown gender) Josh @ Dreamland

Prince of all Goldfish
Developer
Joined: Feb 2008
Posts: 2,950
View profile
Reply #3 Posted on: February 24, 2013, 10:00:37 PM
Ultimately, Windows users will download a patch that copies the box2d binaries into Additional/. Linux users will install it through their respective distributions' package manager.

I don't think Robert built such a patch for Windows.
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #4 Posted on: February 24, 2013, 10:45:22 PM
@eejin It will be much more dynamic and provide much better functionality than GM does, eg. static bodies, dynamically changing shapes, multiple bodies per fixture, edge shapes, mouse joints, etc. As far as performance I can guarantee it will be much faster than GM because it is actually compiled and will use Box2D's overlapping test system for integrating collision checking instead of patching it together with bounding box or precise collision checking systems. As josh said we are not going to be duct taping this to ENIGMA like they did with Studio.

@ExDeus that depends on your interpretation of softbody but yes Box2D does allow a sort of emulation of softbodies using Joints and triangle strips...
https://www.youtube.com/watch?v=6xZFmbTPVBk

@Josh of course I didn't make a Windows patch A) you didn't tell me to or explain how to either B) im not on windows
Offline (Unknown gender) TheExDeus

Developer
Joined: Apr 2008
Posts: 1,860
View profile
Reply #5 Posted on: February 24, 2013, 11:12:32 PM
The softbody question was pretty stupid. I actually already knew that its possible, because I have even done it in much more basic physics engines. Dunno why I asked. :D

Anyway, looking forward to try this on windows. Is there a way to not pack binaries, but the source? So it can be compiled INTO the game and not just packing some dll like with OpenAL?
Offline (Unknown gender) Josh @ Dreamland

Prince of all Goldfish
Developer
Joined: Feb 2008
Posts: 2,950
View profile
Reply #6 Posted on: February 24, 2013, 11:20:37 PM
I'm reasonably certain the author maintains a static library for it. ENIGMA could just link against that.
In the event that this library doesn't exist, or isn't compatible with MinGW32, then I wouldn't recommend including the whole source.
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #7 Posted on: February 25, 2013, 09:12:16 AM
I am pretty sure Box2D does maintain a static lib because that is how GM:S redistributes it.
Pages: 1