closed #4424: fix PhysicsBody::setGravity() doesn't work correctly somet...

...imes.