Changed conditions so that character can jump if the speed is very close to 0. It's a bug when the antiFrictionShapes are attached to the character, but by doing this the problem is solved. The character can now jump while walking.