Some math problems from video games.
|
08-25-2017, 03:32 AM
Post: #2
|
|||
|
|||
RE: Some math problems from video games.
OK, it's Friday afternoon, let's generalize...
How about associating a repulsive force field with each enemy, e.g. through a set of potential functions V(i,|r-r_i|) that (presumably) decrease with the distance (|r-r_i|) to the enemy object (i). By allowing these to depend on (i) you can cater for different types (strengths, ranges,...) of enemies. To escape your enemies' "force field" you would then simply follow "minus the gradient" of the total potential, just like water running downhill, to minimize the potential (threat).... And you can make it fancier by allowing the potentials to depend on angles relative to the enemies' orientations (blind spots, direction of barrels?) as well. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Some math problems from video games. - pier4r - 08-24-2017, 08:00 PM
RE: Some math problems from video games. - AlexFekken - 08-25-2017 03:32 AM
RE: Some math problems from video games. - pier4r - 08-25-2017, 07:36 AM
RE: Some math problems from video games. - Jlouis - 08-28-2017, 12:01 PM
RE: Some math problems from video games. - ijabbott - 09-03-2017, 02:21 PM
RE: Some math problems from video games. - pier4r - 09-03-2017, 10:26 PM
|
User(s) browsing this thread: 1 Guest(s)