Please press See inside and backpack the define block if you would like to use this!
Based on an earlier project of mine (scratch.mit.edu/projects/102867208), which was a remix of a project by @Airtoum (scratch.mit.edu/projects/31225626), who themself had credited @Wheatley_Animations for the math.