Jump not responding

I’m having an issue where the jump control is not responding. My scene is composed of flat surfaces there are no edges or anything above that the character can get caught on. The jump control will either not work at all , only work when walking in certain directions or randomly work. It’s different every time I load the project. The only time it responds consistently is when I set the jump speed very high and gravity very low.

CapsuleCollisionShape capsuleShape = new CapsuleCollisionShape(1.5f, 45f, 1);
player = new CharacterControl(capsuleShape, 0.05f);
player.setPhysicsLocation(new Vector3f(0, 45, 0));[/java]

This doesn’t work consistently.