Bill Meltsner
e962891ba2
Add Fixture:getNext()
...
--HG--
branch : box2d-update
2011-09-24 12:32:28 -04:00
Bill Meltsner
c705063597
First attempt at implementing Memoization for certain Box2D objects
...
--HG--
branch : box2d-update
2011-09-24 12:20:59 -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
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
0d4569d28b
Add mandatory density argument to Body:createFixture
...
--HG--
branch : box2d-update
2011-09-24 02:34:27 -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
542ae2f736
Actually create groundBody when creating a World with gravity (i.e. all the time)
...
--HG--
branch : box2d-update
2011-09-24 01:16:34 -04:00
Bill Meltsner
2c761fc701
Actually load Fixture Lua functions
...
--HG--
branch : box2d-update
2011-09-24 00:47:54 -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
de170c02c8
Update Joint APIs
...
--HG--
branch : box2d-update
2011-09-23 22:32:49 -04:00
Bill Meltsner
6e7d83d7ea
Update ChainShape API
...
--HG--
branch : box2d-update
2011-09-23 22:32:39 -04:00
Bill Meltsner
367dbc2ecc
Update Body API.
...
--HG--
branch : box2d-update
2011-09-23 22:21:14 -04:00
Bill Meltsner
0678eac453
A first attempt at overhauling collision. New everything.
...
--HG--
branch : box2d-update
2011-09-23 21:25:41 -04:00
Bill Meltsner
71abae06c7
Implement Fixture class properly.
...
--HG--
branch : box2d-update
2011-09-23 18:01:40 -04:00
Bill Meltsner
95f6047417
Update World contact callback definitions, get ready for collision overhaul
...
--HG--
branch : box2d-update
2011-09-23 17:01:53 -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
a956f9b0c1
Update WeldJoint for new soft constraint options
...
--HG--
branch : box2d-update
2011-09-23 16:17:29 -04:00
Bill Meltsner
3c7310e76d
Update to Box2D 2.2.1 (stop updating, Erin!)
...
--HG--
branch : box2d-update
2011-09-23 16:09:18 -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
1fa99d022a
Documented collideConnected flag
...
--HG--
branch : box2d-update
2011-09-15 15:35:11 -04:00
Bill Meltsner
d8f3db6682
exposed new Shape functions
...
--HG--
branch : box2d-update
2011-09-15 15:31:09 -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
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
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