Hi I was experiencing this issue too! Turns out that 45 units is determined by the STEP HEIGHT in the Character Movement Component. Posting this if anyone else is wondering! Lowering this value reduces the snapping height and makes the script work of OP