# Do I use 1/x for this ?

This topic is 4898 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hi guys, Here is what I'm doing: A B C D I want the distance from a point to have less influence. So let's say from A to B (and also A to C) is 1.0, then A to D is 1.41 but I want it so the farther away it is the lower the number, so should I use 1.0 / 1.41 = 0.71 ? Does that seem right ? Thanks.

##### Share on other sites
That would be the easyest way but there are many more ways to do that. What are you tring to do exactly?

##### Share on other sites
Quote:
 Original post by EndemoniadaHi guys,Here is what I'm doing:A BC DI want the distance from a point to have less influence. So let's say from A to B (and also A to C) is 1.0, then A to D is 1.41 but I want it so the farther away it is the lower the number, so should I use 1.0 / 1.41 = 0.71 ? Does that seem right ?Thanks.

The power of most physical phenomenon (in the real world) falls off at a rate of 1 / distance^2. Which makes sense, if you think about it. If you have a point with a sphere of influence, the influence will decline at a rate proportional to the distance squared.

• ### What is your GameDev Story?

In 2019 we are celebrating 20 years of GameDev.net! Share your GameDev Story with us.

• 13
• 10
• 9
• 34
• 16
• ### Forum Statistics

• Total Topics
634125
• Total Posts
3015666
×