diff --git a/cocos/physics/CCPhysicsBody.cpp b/cocos/physics/CCPhysicsBody.cpp index 1004f4ce54..4d69d5c520 100644 --- a/cocos/physics/CCPhysicsBody.cpp +++ b/cocos/physics/CCPhysicsBody.cpp @@ -404,7 +404,7 @@ void PhysicsBody::applyForce(const Vect& force, const Point& offset) cpBodyApplyForce(_info->getBody(), PhysicsHelper::point2cpv(force), PhysicsHelper::point2cpv(offset)); } -void PhysicsBody::resetForce() +void PhysicsBody::resetForces() { cpBodyResetForces(_info->getBody()); diff --git a/cocos/physics/CCPhysicsBody.h b/cocos/physics/CCPhysicsBody.h index 1b132cbdb5..7c2b79b9ba 100644 --- a/cocos/physics/CCPhysicsBody.h +++ b/cocos/physics/CCPhysicsBody.h @@ -113,7 +113,7 @@ public: /** Applies a immediate force to body. */ virtual void applyForce(const Vect& force, const Point& offset); /** reset all the force applied to body. */ - virtual void resetForce(); + virtual void resetForces(); /** Applies a continuous force to body. */ virtual void applyImpulse(const Vect& impulse); /** Applies a continuous force to body. */