diff --git a/cocos/physics/CCPhysicsWorld.cpp b/cocos/physics/CCPhysicsWorld.cpp index 79fb61f607..50e773f525 100644 --- a/cocos/physics/CCPhysicsWorld.cpp +++ b/cocos/physics/CCPhysicsWorld.cpp @@ -1015,12 +1015,11 @@ void PhysicsWorld::update(float delta) _updateTime += delta; if (++_updateRateCount >= _updateRate) { + _info->step(_updateTime * _speed); for (auto& body : _bodies) { body->update(_updateTime * _speed); } - - _info->step(_updateTime * _speed); _updateRateCount = 0; _updateTime = 0.0f; }