blast_origin = /* blast origin */ player_origin = /* origin of player to push away */ velocity = player_origin - blast_origin velocity *= (radius - velocity.length) / (radius * velocity.length) * /* push power */ set velocity