Need help doing maths

I know imma sound stupid when I say this but I need help with magnitude.

Basically, I want to make a number bigger based on how small the magnitude is (in simpler terms, the smaller the distance between two objects, the greater a number becomes)

In basketball terms, the closer the defender, the higher the shot contest

Does anyone mind telling what equation i need for this?

currently im using (magnitude*2)/60 which completely doesn’t work

1 Like

Magnitude
output = 1 / magnitude

Basketball
shot = 1 / distance_to_target

Called the reciprocal function

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.