Tutorial to override functions in Character Movement component?

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