A capsule is made off two spheres. You either lock x,y movement while jumping or change physics code.