Commit Graph

61 Commits

Author SHA1 Message Date
Bart van Strien c761202486 Build type information on first use (load-time), instead of using a hardcoded list
--HG--
branch : dynamiccore2
2016-11-13 16:38:57 +01:00
airstruck 154f7cbc7e Support reference angle on revolute, prismatic, and weld joints (fixes #1194) 2016-08-19 14:36:36 +02:00
airstruck 9a2f99dc3d Added 2-point version of love.physics.newRevoluteJoint (fixes #1175) 2016-07-07 21:18:35 +02:00
Alex Szpakowski ab4cfb4a35 Added an optional 'collideconnected' boolean argument to love.physics.newMotorJoint (resolves issue #1130). 2016-02-02 08:38:07 -04:00
Alex Szpakowski 46a2e7b85c Happy new year! 🎉 2016-01-01 00:05:06 -04:00
Bart van Strien 3cb777e2b7 Add basic lua 5.3 support 2015-06-16 10:25:41 +02:00
Alex Szpakowski 2f419c1c83 Replaced most cases of type bits and type name strings in love's Lua wrapper code with type id's.
--HG--
branch : minor
2015-03-01 18:32:41 -04:00
Alex Szpakowski ebc68023a7 Fix many warnings about implicit integer conversions when compiling for 64 bits.
--HG--
branch : minor
2015-02-20 01:20:08 -04:00
Alex Szpakowski c7b45b3505 Updated copyright for the new year 2014-12-31 19:32:43 -04:00
Alex Szpakowski 7948b11082 Updated love.physics.newPolygonShape and love.physics.newChainShape to accept a table of vertices, fixed a small memory leak if newChainShape errors, fixed the vertex order of newChainShape. 2014-09-21 03:31:36 -03:00
Alex Szpakowski da7cd267ea Changed luax_pushtype to retain the pushed object itself, but only if the object isn't in the Lua state already.
Previously, calling e.g. love.graphics.getFont() 10,000 times would retain the object 10,000 times (and release it 10,000 times when the Font object was garbage-collected in the Lua state.) Now it will only retain it once and release it once.
2014-08-09 16:04:59 -03:00
Alex Szpakowski d52bab4221 Updated the new module changes to use more compile/link-time checking rather than runtime checking. 2014-07-21 15:12:01 -03:00
Alex Szpakowski 014b9a46e5 Updated the Lua wrapper code for modules to account for cases where the module's instance is removed from memory completely and recreated during the program's lifetime. 2014-07-21 14:52:01 -03:00
Alex Szpakowski dfa319e01a Replaced the EXCEPT_GUARD macro for converting love exceptions into Lua errors with the new luax_catchexcept function, which takes lambda function arguments. 2014-06-03 19:27:00 -03:00
Bart van Strien e667485f68 Check argument count of newChainShape 2014-04-26 14:35:39 +02:00
Alex Szpakowski 0e13975c11 Improved some error message text 2014-01-17 22:28:06 -04:00
Alex Szpakowski 3120a0e650 Goodbye 2013, hello 2014! 2014-01-03 17:28:58 -04:00
Alex Szpakowski 760f8220fa Fixed a small memory leak if love.physics.newChainShape errors 2013-12-10 03:54:56 -04:00
Alex Szpakowski 5e3a0fbc6e Updated box2d from 2.2.1 to 2.3.0
--HG--
branch : box2d-2.3
2013-11-09 04:30:36 -04:00
Alex Szpakowski 8d5ddb9e34 Fixed some internal documentation (thanks to clang's -Wdocumentation) 2013-09-23 21:52:28 -03:00
Alex Szpakowski ffe0485173 Removed love.window.checkMode (resolves issue #653, invalidates issue #592).
Also fixed love.window.setMode to fail instead of bug out when trying to set a fullscreen mode which is too large for the monitor.
2013-09-19 18:13:52 -03:00
Alex Szpakowski 06f80d5c08 Fixed undefined behaviour when love exceptions are converted into Lua errors (resolves issue #729) 2013-09-05 23:17:29 -03:00
Alex Szpakowski ec9dec6b80 Replaced luax_newtype with luax_pushtype (and added luax_rawnewtype for the old functionality of luax_newtype.)
luax_pushtype keeps the object in a weak table and checks the table before creating a new userdata, so it re-uses the object's existing wrapper userdata if it can, whenever the object is pushed to Lua.

This fixes some subtle issues with love objects, where using them as keys in tables would not always work as expected (https://love2d.org/forums/viewtopic.php?f=4&t=39398&p=112388#p112415). It also decreases the amount of new Lua objects created, saving the garbage collector some work.
2013-08-29 00:40:06 -03:00
Alex Szpakowski 96161c66f6 Updated copyright text for the new year 2013-02-05 05:32:49 -04:00
Bart van Strien 4de936ed75 Fix love.physics.getDistance 2012-11-19 21:10:28 +01:00
Bart van Strien 7793e7f02f CRLF to LF 2012-07-04 14:40:24 +02:00
rude 81c38e22d0 Applied the new style guidelines.
Well, sort of. Lot's more to be done, but this is a start.
2012-06-28 23:52:33 +02:00
Bill Meltsner e482f32da3 Allow vertices in either clockwise or counter-clockwise order for newPolygonShape (fixes issue #326) 2012-02-04 17:18:57 -05:00
Bill Meltsner be55579a22 Happy New Year, have an enormous diff 2012-01-09 02:41:11 -06:00
Bart van Strien 0aae9684b3 Automated formatting fix 2011-11-16 11:32:41 +01:00
Bill Meltsner f38655a934 Add second body anchor point to FrictionJoint/WeldJoint constructors
--HG--
branch : box2d-update
2011-10-02 10:06:31 -04:00
Bill Meltsner 735c52b228 make love.physics.setMeter error on invalid meters (anything less than 1)
--HG--
branch : box2d-update
2011-10-02 09:33:42 -04:00
Bill Meltsner d4703960a4 Do the same for WheelJoint
--HG--
branch : box2d-update
2011-09-27 16:38:46 -04:00
Bill Meltsner 5244463109 Add second body anchor point as a parameter to love.physics.newPrismaticJoint, and fix some scaling issues with PrismaticJoint
--HG--
branch : box2d-update
2011-09-27 15:48:29 -04:00
Bill Meltsner b6f3d2114f Remove legacy meter setting from love.physics.newWorld
--HG--
branch : box2d-update
2011-09-25 11:32:46 -04:00
Bill Meltsner 5cd2ce05fd Fix scaling errors with CircleShape's radius
--HG--
branch : box2d-update
2011-09-25 11:30:58 -04:00
Bill Meltsner 680dd65c19 Add love.physics.getDistance(fixtureA, fixtureB) - gets the distance between and the closest points of two fixtures
--HG--
branch : box2d-update
2011-09-24 17:29:42 -04:00
Bill Meltsner b36ff409aa Make Fixture creation API more lovely
--HG--
branch : box2d-update
2011-09-24 09:27:39 -04:00
Bill Meltsner 08f894a98e Box2D implemented its own convex hull algorithm, Graham just messes things up
--HG--
branch : box2d-update
2011-09-24 03:10:19 -04:00
Bill Meltsner 8592b98525 Add type to Body constructor (defaults to "static")
--HG--
branch : box2d-update
2011-09-24 02:15:46 -04:00
Bill Meltsner 5f4b4c8838 Forgot scaling when creating shapes and in PolygonShape::getPoints()
--HG--
branch : box2d-update
2011-09-24 01:55:15 -04:00
Bill Meltsner a446ddacc4 Fix Shape memory management
--HG--
branch : box2d-update
2011-09-24 00:41:42 -04:00
Bill Meltsner de90c5e0d5 Fix Physics linker error
--HG--
branch : box2d-update
2011-09-23 22:54:29 -04:00
Bill Meltsner 367dbc2ecc Update Body API.
--HG--
branch : box2d-update
2011-09-23 22:21:14 -04:00
Bill Meltsner 71abae06c7 Implement Fixture class properly.
--HG--
branch : box2d-update
2011-09-23 18:01:40 -04:00
Bill Meltsner 4980797afc World no longer has an explicit size
--HG--
branch : box2d-update
2011-09-23 16:27:59 -04:00
Bill Meltsner a565668183 Add ChainShape
--HG--
branch : box2d-update
2011-09-15 17:17:28 -04:00
Bill Meltsner e69cafe868 Switched get/setMeter from being a World method to a love.physics function
--HG--
branch : box2d-update
2011-09-15 16:13:54 -04:00
Bill Meltsner e5fa4c87c6 exposed collideConnected flag
--HG--
branch : box2d-update
2011-09-15 14:28:48 -04:00
Bill Meltsner 99660f39ab Added RopeJoint
--HG--
branch : box2d-update
2011-09-15 12:40:16 -04:00