diff --git a/cocos/physics/CCPhysicsBody.cpp b/cocos/physics/CCPhysicsBody.cpp index e62ba32666..6ffe1fc02e 100644 --- a/cocos/physics/CCPhysicsBody.cpp +++ b/cocos/physics/CCPhysicsBody.cpp @@ -773,12 +773,12 @@ void PhysicsBody::setResting(bool rest) const void PhysicsBody::update(float delta) { // damping compute - /*if (_isDamping && _dynamic && !isResting()) + if (_isDamping && _dynamic && !isResting()) { _cpBody->v.x *= cpfclamp(1.0f - delta * _linearDamping, 0.0f, 1.0f); _cpBody->v.y *= cpfclamp(1.0f - delta * _linearDamping, 0.0f, 1.0f); _cpBody->w *= cpfclamp(1.0f - delta * _angularDamping, 0.0f, 1.0f); - }*/ + } } void PhysicsBody::setCategoryBitmask(int bitmask)