mirror of
https://github.com/love2d/love.git
synced 2026-08-19 12:14:20 +02:00
love.physics: simplify Body and Shape API.
#1130 - Shapes are now directly attached to Bodies when they're created (similar to love 0.7 and older). - Fixtures are removed. - All methods that were in Fixtures now exist in Shapes. - All APIs that used or returned a Fixture now do the same with a Shape. - Add new love.physics.new*Shape variants that take a Body as the first parameter. - Deprecate the new*Shape APIs that don't take a Body. - Deprecate love.physics.newFixture (the deprecated function now returns a Shape). - Replace Body:getFixture and Body:getFixtures with Body:getShape and Body:getShapes (Body:getFixtures is deprecated). - Replace World:queryFixturesInArea and World:getFixturesInArea with World:queryShapesInArea and World:getShapesInArea (queryFixturesInArea is deprecated). - Replace Contact:getFixtures with Contact:getShapes (Contact:getFixtures is deprecated). - Replace all love.physics callback Fixture parameters with Shape parameters. - Deprecate ChainShape:getChildEdge.
This commit is contained in:
@@ -837,8 +837,6 @@ set(LOVE_SRC_MODULE_PHYSICS_BOX2D
|
||||
src/modules/physics/box2d/DistanceJoint.h
|
||||
src/modules/physics/box2d/EdgeShape.cpp
|
||||
src/modules/physics/box2d/EdgeShape.h
|
||||
src/modules/physics/box2d/Fixture.cpp
|
||||
src/modules/physics/box2d/Fixture.h
|
||||
src/modules/physics/box2d/FrictionJoint.cpp
|
||||
src/modules/physics/box2d/FrictionJoint.h
|
||||
src/modules/physics/box2d/GearJoint.cpp
|
||||
@@ -881,8 +879,6 @@ set(LOVE_SRC_MODULE_PHYSICS_BOX2D
|
||||
src/modules/physics/box2d/wrap_DistanceJoint.h
|
||||
src/modules/physics/box2d/wrap_EdgeShape.cpp
|
||||
src/modules/physics/box2d/wrap_EdgeShape.h
|
||||
src/modules/physics/box2d/wrap_Fixture.cpp
|
||||
src/modules/physics/box2d/wrap_Fixture.h
|
||||
src/modules/physics/box2d/wrap_FrictionJoint.cpp
|
||||
src/modules/physics/box2d/wrap_FrictionJoint.h
|
||||
src/modules/physics/box2d/wrap_GearJoint.cpp
|
||||
|
||||
Reference in New Issue
Block a user