Commit Graph

307 Commits

Author SHA1 Message Date
Klonan 7595bc7edb whitespace micro 2022-08-27 17:37:30 +02:00
Klonan 4e81a31cd1 Code style (tabs) 2022-08-27 17:35:41 +02:00
Klonan 03939299db Added World:getFixturesInArea() 2022-08-27 17:16:51 +02:00
Alex Szpakowski 7f3538d2ba Merge branch 'main' into 12.0-development 2022-01-05 21:10:27 -04:00
Alex Szpakowski 8e7fd10b6f Update copyright year for 2022 2021-12-31 18:33:40 -04:00
megagrump 85894ad5e4 use dt instead of inv_dt in RevoluteJoint::getMotorTorque 2021-11-21 01:04:48 +01:00
Alex Szpakowski 433190d1df Merge branch 'master' into 12.0-development 2021-06-06 11:43:54 -03:00
Alex Szpakowski 977c690fa9 Fix physics meter value persisting after love.event.quit("restart").
Fixes #1685
2021-04-11 19:53:16 -03:00
Alex Szpakowski 9b4aea8f17 Missed some copyright date updates 2021-04-07 20:34:24 -03:00
Alex Szpakowski 21f5ba86d3 Merge branch 'master' into 12.0-development 2021-04-07 20:33:44 -03:00
Alex Szpakowski f89aabb0bb Update copyright year for 2021 2021-04-04 16:14:45 -03:00
Alex Szpakowski 633d2fa5c8 Merge branch 'master' into 12.0-development 2021-01-06 21:49:34 -04:00
Qais Patankar 562cc6b1cb Fix #1614: add Body:getLocalPoints 2020-12-30 04:27:48 +00:00
Alex Szpakowski fc2cf602f6 Fix RopeJoints not working. 2020-11-12 23:46:49 -04:00
Alex Szpakowski cbde2ce76c Merge pull request #1613 from thegrb93/box2d-update
Box2d update to 2.4.1
2020-11-02 21:27:57 -04:00
Garrett Brown 1b74b34cce Update userdata stuff to how new box2d wants it 2020-10-17 22:30:01 -04:00
Garrett Brown 77f238767f Update to box2d 2.4.1 2020-10-17 22:15:18 -04:00
Garrett Brown bd6d50e2a9 Rename to get/setKinematicState 2020-09-20 21:54:02 -04:00
thegrb93 e4c7a4e777 Add getState and setState 2020-09-16 21:39:55 -04:00
Garrett Brown a16640c89c Added backwards compatible frequency/dampingRatio functions. Added new stiffness/damping functions. 2020-08-23 02:50:47 -04:00
Garrett Brown ed257083c3 Revert this whitespace change 2020-08-16 22:42:29 -04:00
Garrett Brown 10002c91db Didn't mean to change these 2020-08-16 21:20:16 -04:00
Garrett Brown b074ae8f4c Gotta lowercase these too 2020-08-16 19:39:36 -04:00
Garrett Brown 8f4476ca3d Add one sided edge support. Just not sure if the ghost vertices are fine. 2020-08-16 19:12:56 -04:00
Garrett Brown 09db462fd6 Fixes 2020-08-16 19:01:59 -04:00
Garrett Brown 59a1a4b2cd Finish wrapper function renames 2020-08-16 18:27:51 -04:00
Garrett Brown 74c6021e8d Starting box2d update 2020-08-16 10:40:04 -04:00
Alex Szpakowski 5f9b5a21d0 Merge default into minor
--HG--
branch : minor
2020-01-03 22:45:36 -04:00
Alex Szpakowski fc4847c69d Update copyright for the new year 2020-01-03 22:40:36 -04:00
Alex Szpakowski 23db4f4a59 Remove functions that were deprecated in LÖVE 11.
--HG--
branch : minor
2019-12-20 00:45:20 -04:00
Alex Szpakowski 91d425e7e1 Fix World:getJoints to return fully resolved types for joints. 2019-01-05 10:17:11 -04:00
Alex Szpakowski 3ad16a70da love.physics: move internal box2d->love object map to World instances, and clean up some physics object code. Resolves issue #1465. 2019-01-04 21:36:05 -04:00
Alex Szpakowski 0752f27bdf Update copyright year for 2019 2019-01-03 21:09:05 -04:00
Alex Szpakowski a7d0c02058 Remove some unused love.physics Body methods, and clean up a bit of code. 2019-01-03 20:36:47 -04:00
David K b8c9bc38a1 Renamed arguments in setTransform method. Merge setters in to one lamba
--HG--
branch : bodygettransform
2018-05-26 09:54:09 +02:00
David K 0d1b2bc68a Added body:setTransform method
--HG--
branch : bodygettransform
2018-05-24 20:25:55 +02:00
David K 29b7dcf21b Added body:getTransform method
--HG--
branch : bodygettransform
2018-04-29 21:05:03 +02:00
Alex Szpakowski b934f74795 Fix Fixture:getShape() causing crashes with ChainShapes (resolves issue #1392), removed dead code that's no longer valid 2018-04-07 18:37:29 -03:00
Alex Szpakowski 4d5c4ef807 Fix Body:isTouching. 2018-01-14 14:40:46 -04:00
Alex Szpakowski 02e115c339 Add Body:isTouching(otherbody). See issue #1365. 2018-01-14 14:37:48 -04:00
Bart van Strien e80247c191 Happy new year! 2018-01-03 19:47:35 +01:00
Alex Szpakowski 95adf7e347 Error instead of crashing when a frequency of 0 is set on a MouseJoint. Resolves issue #1197.
--HG--
branch : minor
2017-10-08 16:24:48 -03:00
Bart van Strien 9e4374935d Show (short) list of possible enum values when an invalid value is encountered (resolves #1318)
All enum errors have (hopefully) been changed to a luax_enumerror, which has a
fixed error message. If additionally a list of valid options is passed, it
lists that in the error message. For every enum error with few options I've
implemented this using a getConstants call.

This solution has been designed specifically to reduce the number of template
instantiations (as I've been told that was a concern). All new template code
happens in places where there already was an instantiation of the relevant
StringMap. Of course there is still std::vector<std::string>...

--HG--
branch : minor
2017-10-02 17:11:53 +02:00
Alex Szpakowski 8ea2f09a1c Fix Fixture:getShape. Resolves issue #1319.
--HG--
branch : minor
2017-09-22 20:31:24 -03:00
Bart van Strien 23929cab14 Rename love.physics getObjectList functions to getObjects (resolves #1305)
World:getBodyList -> World:getBodies
World:getContactList -> World:getContacts
World:getJointList -> World:getJoints

Body:getFixtureList -> Body:getFixtures
Body:getContactList -> Body:getContacts
Body:getJointList -> Body:getJoints

Marked the old functions as deprecated

--HG--
branch : minor
2017-09-13 15:48:53 +02:00
Alex Szpakowski fcd9f1526c Use different output messages for deprecated methods versus functions.
--HG--
branch : minor
2017-08-27 16:55:33 -03:00
Alex Szpakowski d8eb6e6012 Rename PrismaticJoint/RevoluteJoint:hasLimitsEnabled to areLimitsEnabled and deprecate the old methods (resolves issue #1324).
--HG--
branch : minor
2017-08-27 16:18:54 -03:00
Alex Szpakowski fee157b6b9 Functions that take a boolean argument now properly type-check for it.
--HG--
branch : minor
2017-08-14 22:56:20 -03:00
Alex Szpakowski b5f2bce0a6 Merge default into minor
--HG--
branch : minor
2017-08-06 03:48:48 -03:00
raidho36 e751278af1 Fix issue #1303 2017-08-02 02:56:02 +03:00