mirror of https://github.com/axmolengine/axmol.git
issue #2771: fix some code style
This commit is contained in:
parent
2f67ceb495
commit
a2adbff2c8
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue