Commit Graph

518 Commits

Author SHA1 Message Date
Bill Meltsner 705fa14736 Forgot to put the second anchor points in local coordinates
--HG--
branch : box2d-update
2011-10-02 10:28:37 -04: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 ffef6f58a9 Make Joint::getReactionForce use the right stack position
--HG--
branch : box2d-update
2011-10-02 09:28:39 -04:00
Bill Meltsner 5d26c564e0 Add EdgeShape:getPoints()
--HG--
branch : box2d-update
2011-09-29 11:19:30 -04:00
Bill Meltsner fa58c87605 Add PrismaticJoint:getMaxMotorForce
--HG--
branch : box2d-update
2011-09-29 11:14:42 -04:00
Bill Meltsner 53cdd0ea7d Add RevoluteJoint:getMaxMotorTorque
--HG--
branch : box2d-update
2011-09-29 11:12:03 -04:00
Bill Meltsner c5cd6d709b Fix a lot of scaling issues
--HG--
branch : box2d-update
2011-09-29 11:09:08 -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 356b3c880d Fixture:getShape() returns a Shape of the type it actually is
--HG--
branch : box2d-update
2011-09-26 21:35:44 -04:00
Bill Meltsner 16fb73e92a Callbacks now actually fire when they're supposed to, instead of post-step (means PreSolve collision filtering works)
--HG--
branch : box2d-update
2011-09-26 20:22:03 -04:00
Bill Meltsner 413f5026fa Fix invalid pointer issue in PostSolve callback
--HG--
branch : box2d-update
2011-09-26 19:13:44 -03:00
Bill Meltsner 5886977baa Fix World:getCallbacks/getContactFilter to not return any arguments passed (though you shouldn't be passing any arguments anyway, that's silly)
--HG--
branch : box2d-update
2011-09-26 11:20:26 -04:00
Bill Meltsner 80fb261b5a Better ChainShape API consistency
--HG--
branch : box2d-update
2011-09-25 22:29:30 -04:00
Bill Meltsner de908f3354 Missing retain() calls in get*List functions
--HG--
branch : box2d-update
2011-09-25 12:35:57 -04:00
Bill Meltsner 28c5982d92 Fix table creation for getList() functions, and ignore the ground body
--HG--
branch : box2d-update
2011-09-25 12:18:13 -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 56ce9a2e17 Expose love.physics.getDistance
--HG--
branch : box2d-update
2011-09-25 11:21:05 -04:00
Bill Meltsner 624e1bf8f5 Missed a bunch of retain() calls
--HG--
branch : box2d-update
2011-09-24 23:52:56 -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 3bd2316c6c Remove Fixture:getNext, it was just for testing
--HG--
branch : box2d-update
2011-09-24 17:14:03 -04:00
Bill Meltsner 221d9699f6 Add Body:getFilterList
--HG--
branch : box2d-update
2011-09-24 17:12:45 -04:00
Bill Meltsner dd3993623b Add World:isLocked and const-ify a few worthy methods
--HG--
branch : box2d-update
2011-09-24 16:59:45 -04:00
Bill Meltsner 6a0c5b485b Memoize Contacts, and add List-fetching functions to World (they return arrays)
--HG--
branch : box2d-update
2011-09-24 16:46:07 -04:00
Bill Meltsner f852c9bac2 Add World:rayCast
--HG--
branch : box2d-update
2011-09-24 16:26:41 -04:00
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 d35dbaa28b Add __eq metamethod to all objects (checks to see if the Proxy data they represent are equal)
--HG--
branch : box2d-update
2011-09-24 11:58:24 -04:00
Bill Meltsner 2e1b941bd6 Add Memoizer class
--HG--
branch : box2d-update
2011-09-24 11:51:06 -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