can someone explain how i was able to fling myself behind the building/change directions

i want to be able to do this consistently but i cant replicate this even though ive tried