StepHeight

I have a physics player with a stepHeight() of 0.5 to avoid wrong collisions. However, I noticed that when jumping, at the top of the arch, it does some weird movement before starting to fall down again. I also noticed that if the stepHeight() is lower, this doesn’t happen. Is there any way I can edit the stepHeight() for the player during the jump to make it smaller?

EDIT: This is the code:

[java]CapsuleCollisionShape capsuleShape = new CapsuleCollisionShape(1f, 1f, 1);

player = new CharacterControl(capsuleShape, 0.5f);

player.setJumpSpeed(30);

player.setFallSpeed(40);

player.setGravity(30);[/java]

No

Ok, thanks. Will try to figure out another way.