Jump to content
  • Advertisement
Sign in to follow this  
Endemoniada

Do I use 1/x for this ?

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

If you intended to correct an error in the post then please contact us.

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 this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by Endemoniada
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.


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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!