Commit Graph

263 Commits

Author SHA1 Message Date
Bill Meltsner 99660f39ab Added RopeJoint
--HG--
branch : box2d-update
2011-09-15 12:40:16 -04:00
Bart van Strien dc873c24f0 Some exception cleanup 2011-09-11 22:55:34 +02:00
Bill Meltsner 7ec64bf912 Add basic EdgeShape (todo: all edge-related functionality) and further integrated the new Joints
--HG--
branch : box2d-update
2011-09-04 13:21:57 -04:00
Bill Meltsner 551cf591e2 Add new Shape types to the Shape StringMap
--HG--
branch : box2d-update
2011-09-03 16:34:36 -04:00
Bill Meltsner 915e3e9d86 Updated to Box2D 2.2, added new joints, some other updates to match the API changes (still plenty more to go though)
--HG--
branch : box2d-update
2011-09-03 15:39:32 -04:00
Bill Meltsner b3434997bf more joint updates to better match the API
--HG--
branch : box2d-update
2011-07-02 11:46:42 -05:00
Bart van Strien fafe0d7039 Wait until the end of a physics update before destroying bodies (issue #193) 2011-06-10 14:03:56 +02:00
Bart van Strien 6e28c49a20 Map box2d asserts to love::Exception and catch them in constructors
Should be added to other functions commonly failing sometime.
2011-06-08 21:44:21 +02:00
Bill Meltsner b4fae893fd updating the Joints
--HG--
branch : box2d-update
2011-03-13 13:16:02 -04:00
Bill Meltsner be146c5f61 some more Shape fixes
--HG--
branch : box2d-update
2011-03-13 10:09:17 -04:00
Bill Meltsner c3d69746c1 making a stab at updating Shapes
--HG--
branch : box2d-update
2011-03-13 09:33:32 -04:00
Bill Meltsner e32a373dc9 add new joint enums (no implementation yet)
--HG--
branch : box2d-update
2011-03-13 08:04:43 -04:00
Bill Meltsner 57e345e91e bring in new version of Box2D and update #include paths
--HG--
branch : box2d-update
2011-03-13 07:59:18 -04:00
vrld e77b94f112 Make the compiler shut up about initialization order. 2011-03-10 13:35:18 +01:00
vrld 1c7e34715b Add NULL initializers for pointers.
Constructing invalid shapes, e.g. a rectangle with width 0, could result
in a b2Assert to fail. In turn, Shape::~Shape tried to destroy a the shape
with an uninitialized pointer, yielding a segfault. Add NULL-initializers
and checks for NULL to prevent this.
2011-01-25 13:24:39 +01:00
Bill Meltsner fde708160e bringing in the new year by changing every 2010 to 2011 2011-01-15 14:40:27 -06:00
rude 31c9995082 Fixed some type conversion warnings in VC. Mostly float <-> int and bool <-> int. 2011-01-09 16:28:30 +01:00
Bart van Strien c0789b1da3 Remove references to old physics callbacks, fixes #139 2010-12-18 12:38:29 +01:00
rude d884cb8a82 Removed newWorld(w, h). Added newWorld(x1, y1, x2, y2). 2010-11-25 16:49:03 +01:00
Bart van Strien b2d054ad50 newWorld(w, h) now actually makes the world w*h, not 4*w*h 2010-10-12 21:36:41 +02:00
Bart van Strien 9c5c86325a Reverted Box2D errors back to asserts, because love's exceptions provided even less info 2010-09-23 20:16:45 +02:00
rude 8c721ceb6a Some small fixes to make LOVE compilable in MSVC2010. 2010-09-05 12:05:05 +02:00
Bart van Strien 9a86aab97d Added body.getAllowSleeping, resolves #52 2010-08-27 22:19:16 +02:00
Bill Meltsner 7611edd9ee DistanceJoint:getType now returns "distance" instead of "circle" 2010-08-19 01:05:51 -05:00
Bart van Strien 310a50ba2f Exposed shape:getBody 2010-08-09 12:32:10 +02:00
Bart van Strien 908df65bdb Added meter parameter to newWorld 2010-08-01 14:42:54 +02:00
Bart van Strien 55ec59810d Added love.quit callback 2010-07-31 16:22:12 +02:00
Bill Meltsner 3b841423fa added get/setGroupIndex to CircleShape and PolygonShape 2010-04-07 19:16:49 -04:00
Bill Meltsner c64e034320 Fixed setFixedRotation enabling other flags (bug #190) 2010-04-03 07:12:52 -04:00
Bill Meltsner 6868e2241c fixed a typo in the comments of three love.physics functions (I'm being very useful) 2010-03-30 01:22:03 -04:00
bart@bartbes.ath.cx 736f7ab1a2 love.thread can now share full userdata 2010-02-14 17:41:11 +01:00
Bill Meltsner 73aba4bdd4 eliminated a whole bunch of gcc warnings 2010-02-09 13:21:25 -05:00
Bill Meltsner dd85250180 fixed a bug in PrismaticJoint::setMotorEnabled where it ignored the argument passed 2010-02-09 12:39:05 -05:00
rude aa01c984b9 Updated all dates to 2010. 2010-01-31 16:54:47 +01:00
rude 67e10b64f9 Implmented a few 'missing methods' in love.physics. 2010-01-31 14:24:22 +01:00
bart@bartbes.ath.cx 5f9cf99abd Fixed epic physics typo (getRestituion->getRestitution) 2010-01-07 20:36:14 +01:00
rude cd24dbcb8e Added get/setGroupIndex (#129) and get/setFixedRotation (#113). Also fixed 3000 auto.lua-related warnings in MSVC. 2010-01-04 20:02:36 +01:00
rude ec41545933 Added newQuad. 2009-12-10 22:38:26 +01:00
bill@Ixion c70d1e9db3 keeping a consistent coding style and apparently fixing broken compilation on systems that aren't mine. 2009-12-05 16:29:33 -06:00
bill@Ixion b57f48eb73 last commit broke the build by accident - apparently redeclared a variable. fixed. 2009-12-03 19:20:45 -06:00
bill@Ixion c120a1570c love.physics.newWorld now acts like it's supposed to and adheres to the documentation 2009-12-03 19:13:35 -06:00
bill@Ixion 2515c697e5 bodies can now be forbidden from sleeping 2009-12-03 18:56:40 -06:00
bart@bartbes.ath.cx 7d79398c57 Fixed incorrect number of arguments expected for contact:getVelocity() :getNormal() and :getSeparation() 2009-12-02 16:05:27 +01:00
rude f3d1517a9a Fixed offset bug in body:applyImpulse and body:applyForce. 2009-11-22 13:53:07 +01:00
rude 86ac10c3f6 Fixed bug where destroyed objects in love.physics cause crash when collected. 2009-11-10 23:25:12 +01:00
rude ee59f28e04 Some destructors in love.physics were non-virtual. 2009-11-10 20:24:29 +01:00
rude 2a9b2b608c Restored the destroy method for objects in love.physics. 2009-11-02 23:00:08 +01:00
rude b3bd3427a5 Fixed Shape:testSegment. 2009-10-31 00:15:13 +01:00
rude 435fc43f68 Fixed love.keyboard.setKeyRepeat, fixed issues with Body:getWhatever, and made the save directory settable. 2009-10-29 22:34:54 +01:00
rude 87e3c4131c Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal. 2009-10-10 11:11:04 +02:00