Instead of hacking character.cpp, provide a more reliable check for world->isOnGround(mPtr).