diff --git a/cocos/physics/CCPhysicsBody.cpp b/cocos/physics/CCPhysicsBody.cpp index 405687a21b..189b9edcfa 100644 --- a/cocos/physics/CCPhysicsBody.cpp +++ b/cocos/physics/CCPhysicsBody.cpp @@ -730,15 +730,6 @@ Point PhysicsBody::local2World(const Point& point) return PhysicsHelper::cpv2point(cpBodyLocal2World(_info->body, PhysicsHelper::point2cpv(point))); } -//Clonable* PhysicsBody::clone() const -//{ -// PhysicsBody* body = new PhysicsBody(); -// -// body->autorelease(); -// -// return body; -//} - #elif (CC_PHYSICS_ENGINE == CC_PHYSICS_BOX2D) diff --git a/cocos/physics/CCPhysicsJoint.cpp b/cocos/physics/CCPhysicsJoint.cpp index 99fed53d8b..694559264e 100644 --- a/cocos/physics/CCPhysicsJoint.cpp +++ b/cocos/physics/CCPhysicsJoint.cpp @@ -171,11 +171,6 @@ void PhysicsJoint::setCollisionEnable(bool enable) if (_collisionEnable != enable) { _collisionEnable = enable; - -// for (auto shape : _bodyB->_shapes) -// { -// shape->_info->setGroup(enable ? _bodyB->_info->group : _bodyA->_info->group); -// } } } @@ -245,8 +240,6 @@ bool PhysicsJointPin::init(PhysicsBody *a, PhysicsBody *b, const Point& anchr) _info->add(joint); - //setCollisionEnable(false); - return true; } while (false);