mirror of https://github.com/axmolengine/axmol.git
Merge pull request #4303 from boyu0/iss2771_physical
[ci skip]issue #2771: physics. rename resetForce to resetForces
This commit is contained in:
commit
da2158de20
|
@ -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());
|
||||
|
||||
|
|
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue