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
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
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
abb72cb813
Happy new year! 🥂
...
--HG--
branch : minor
2017-01-02 01:28:29 -04:00
Bart van Strien
9f6aa716fa
Pass Type to luax_register_type by pointer instead of reference
...
Since the type is passed to va_start, and apparently that's undefined behaviour if it's a reference.
<Textmode> the best kind of behavior
--HG--
branch : dynamiccore2
2016-11-14 21:51:47 +01:00
Bart van Strien
d967a755e5
Make love::Type handle type names
...
TODO: Fix undefined behaviour in luax_register_type, you can't use a va_list after a reference type
--HG--
branch : dynamiccore2
2016-11-14 21:06:53 +01:00
Bart van Strien
5d43c9601a
Automatically deduce the type in luax_pushtype, if possible
...
--HG--
branch : dynamiccore2
2016-11-13 17:38:42 +01:00
Bart van Strien
7dd960619d
Automatically deduce the type in luax_checktype, luax_getmodule, luax_optmodule and luax_totype
...
--HG--
branch : dynamiccore2
2016-11-13 17:13:40 +01:00
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
Alex Szpakowski
46a2e7b85c
Happy new year! 🎉
2016-01-01 00:05:06 -04:00
Alex Szpakowski
2c4e713114
Imported some of the dynamiccore branch from love-experiments:
...
- Type names for love's Lua objects are specified as an argument to luax_register_type, rather than being statically defined in an array.
- luax_register_type takes a variable number of method array arguments, for registering superclass methods without copying them into the subclass' method array.
Also removed most of the header declarations for wrapper functions.
2015-11-29 20:38:12 -04: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
91062a1496
Added Body/Contact/Fixture/Joint/World:isDestroyed (resolves issue #964.)
2015-01-05 00:14:41 -04:00
Alex Szpakowski
c7b45b3505
Updated copyright for the new year
2014-12-31 19:32:43 -04:00
Alex Szpakowski
5fac441a51
Added Body:getJointList.
2014-11-15 01:17:20 -04: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
9ab9a393d5
Added Contact:getFixtures and Body:getContactList (see issue #905 ).
...
The list of Contacts associated with bodies changes during World:update (potentially multiple times), so you might miss collisions if you don't use the World callbacks at all.
2014-07-07 15:24:24 -03:00
Alex Szpakowski
431b6a56ce
Added Body:getWorld (resolves issue #895 )
2014-06-09 19:00:05 -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
Alex Szpakowski
fe5e7c17e7
Added Body:setUserData and Body:getUserData (resolves issue #853_
2014-02-26 20:47:05 -04:00
Alex Szpakowski
3120a0e650
Goodbye 2013, hello 2014!
2014-01-03 17:28:58 -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
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
3880646a6a
Fixed some uncaught exceptions in love.physics
2013-07-02 02:27:08 -03:00
Alex Szpakowski
96161c66f6
Updated copyright text for the new year
2013-02-05 05:32:49 -04: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
f00b5f03f2
catch a possible Box2D exception in setMassData (fixes issue #342 )
2012-02-04 16:55:09 -05:00
Linus Sjögren
afd0ef1d9e
Add a custom Body:setMass function.
2012-01-10 04:14:17 +01:00
Bill Meltsner
be55579a22
Happy New Year, have an enormous diff
2012-01-09 02:41:11 -06:00
Bart van Strien
c1f68e058d
Use Box2D's callbacks for destruction of physics objects and wait until the end of the timestep before destroying them.
...
Merge of box2d-id2 from love-experiments
2012-01-08 13:16:50 +01:00
Bart van Strien
c707a4ca45
Properly export all lua-facing functions and use those for initialization (love.cpp no longer explicitly mentions implementations)
2011-12-24 01:10:40 +01:00
Bart van Strien
0aae9684b3
Automated formatting fix
2011-11-16 11:32:41 +01:00
Bill Meltsner
d40b25c1e6
Hindenmerge
2011-10-12 13:40:56 -05:00
Bill Meltsner
221d9699f6
Add Body:getFilterList
...
--HG--
branch : box2d-update
2011-09-24 17:12:45 -04:00
Bill Meltsner
c233ab3d50
isSleepingAllowde -> isSleepingAllowed
...
--HG--
branch : box2d-update
2011-09-24 13:45:40 -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
a0c0fd8387
Add Body:getWorldPoints, basically for use with PolygonShape:getPoints to facilitate easier drawing
...
--HG--
branch : box2d-update
2011-09-24 03:39:21 -04:00
Bill Meltsner
0d4569d28b
Add mandatory density argument to Body:createFixture
...
--HG--
branch : box2d-update
2011-09-24 02:34:27 -04:00
Bill Meltsner
367dbc2ecc
Update Body API.
...
--HG--
branch : box2d-update
2011-09-23 22:21:14 -04: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
Bill Meltsner
fde708160e
bringing in the new year by changing every 2010 to 2011
2011-01-15 14:40:27 -06:00
Bart van Strien
9a86aab97d
Added body.getAllowSleeping, resolves #52
2010-08-27 22:19:16 +02: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
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
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
2a9b2b608c
Restored the destroy method for objects in love.physics.
2009-11-02 23:00:08 +01:00