makes test if character can physically move in given world space direction - length of dir means distance, returns distance fraction