Merge pull request #4303 from boyu0/iss2771_physical

[ci skip]issue #2771: physics.  rename resetForce to resetForces
This commit is contained in:
minggo 2013-11-18 00:32:06 -08:00
commit da2158de20
2 changed files with 2 additions and 2 deletions

View File

@ -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());

View File

@ -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. */