The values you're feeding into the multiply: A world normal. Two examples here, (0, 0, 1) for upwards facing and (1, 0, 0) for side facing. A displacement offset. This is (0, 0, H). (0*0, 0*0, 1*H) << Upwards facing moves up by H. (1*0, 0*0, 0*H) << Sidewards facing does not move, all zero. Use 1-consts, not 3-consts, for…