Commit Graph

768 Commits

Author SHA1 Message Date
Bill Meltsner e2b832015b Add World:queryBoundingBox
--HG--
branch : box2d-update
2011-09-24 16:15:09 -04:00
Bill Meltsner e984bc084d Move Box2D from modules/physics/box2d to libraries
--HG--
branch : box2d-update
2011-09-24 15:34:28 -04:00
Bill Meltsner 8ae43be1fe Fix Fixture memory management issues
--HG--
branch : box2d-update
2011-09-24 14:54:06 -04:00
Bill Meltsner 055238659b Change Contact callbacks to pass the actual Fixtures instead of just the userdata
--HG--
branch : box2d-update
2011-09-24 13:51:11 -04:00
Bill Meltsner c233ab3d50 isSleepingAllowde -> isSleepingAllowed
--HG--
branch : box2d-update
2011-09-24 13:45:40 -04:00
Bill Meltsner 7e039dd1ef Add ContactFilter callback to World
--HG--
branch : box2d-update
2011-09-24 13:45:24 -04:00
Bill Meltsner 1b14dcaeb8 cleaning up *Shape constructors
--HG--
branch : box2d-update
2011-09-24 13:22:05 -04:00
Bill Meltsner 06820210eb better Fixture Shape management
--HG--
branch : box2d-update
2011-09-24 13:21:50 -04:00
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
Bart van Strien 05c2749760 Joysticks are supposed to be 1-indexed, even in the callbacks.. 2011-09-21 21:26:34 +02: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
Bart van Strien dc873c24f0 Some exception cleanup 2011-09-11 22:55:34 +02:00
Bart van Strien 8f9a4ef15d Improve stop and rewind logic for openal 2011-09-11 22:29:37 +02:00
Bart van Strien 96a5a3e402 Catch not just the generic utf8 exception, but a few specific ones as well (bug #244) 2011-09-11 12:51:34 +02:00
Bart van Strien c28659ae33 Rework source updates, do clean stopping of streaming sources once they end. (bug #295) 2011-09-10 17:28:38 +02:00
Bart van Strien 9199f1be5b Catch ALL the utf8 errors (bug #244) 2011-09-10 15:34:45 +02:00
vrld 65f8bcd375 Another take at issue #294, which should fix issues with nVidia cards.
According to http://www.opengl.org/wiki/Image_Formats#Depth_stencil_formats, no driver really supported an individial stencil attachment. Combined depth/stencil buffers have support since OpenGL 3.0 or with the packed_depth_stencil extension.
2011-09-08 16:09:10 +02:00
vrld 4f0028050d Fix issue #294 (really this time).
Add stencil attachment to framebuffer creation. Needed to remove depth
attachment to make it work, but that should not change anything, since depth
test is not enabled anyway. May need testing nonetheless.
2011-09-08 12:25:43 +02:00
vrld eec0250545 Fix issue #292: Can't send arrays to pixeleffects.
Arrays of numbers, vectors and matrices are supported.
2011-09-07 23:32:54 +02:00
vrld 2eb9ee20d5 Fix issue #291: Usage of unsanitized GLSL compiler errors.
Compiler errors may contain vsprintf-escape sequences, which is used by
love::Exception. Wrap errors in %s to avoid garbage output.
2011-09-07 13:52:07 +02:00
vrld d5dce6284f Fix issue #294: Canvas not working when not rendering to default render target. 2011-09-07 13:42:51 +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
Bart van Strien 6e630e8987 Fix width for getWrap and catch utf8 decoding errors in getWrap and getSize (issues #230 and #244) 2011-09-03 16:22:21 +02:00