One of the problems I was having was that Box2D takes half the size (which sorta makes sense, since the origin is the center), not all of it. I did some nasty hacks to make joint drawing more automated, too. (Example: Box2DTest::DrawWorld)
(Added zip to video description.)
In particular, you may want to look at Box2DTest.h/cpp and SingleBox::AddBoxBody. Chain::AddChainBodies may be interesting, too. (Although a bit confusing. :P)
Can i get source please :O ?
Anro900 2 weeks ago
@Anro900 It's near the bottom of the video description. :)
123spacechase 2 weeks ago
hey can you pls send me the source code, i cant match Box2D's physiques with SFML's rendering ^^
zaglet 8 months ago
@zaglet Sure.
One of the problems I was having was that Box2D takes half the size (which sorta makes sense, since the origin is the center), not all of it. I did some nasty hacks to make joint drawing more automated, too. (Example: Box2DTest::DrawWorld)
(Added zip to video description.)
In particular, you may want to look at Box2DTest.h/cpp and SingleBox::AddBoxBody. Chain::AddChainBodies may be interesting, too. (Although a bit confusing. :P)
(Need more characters!)
123spacechase 8 months ago
@123spacechase oh Thanks a lot
Thanks man for ur response u rock, i ll take a look.
zaglet 7 months ago