Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

For getting more details on the relative velocity this topic, please reference Wikipedia http://en.wikipedia.org/wiki/Relative_velocity
We can use sphere range detect the nearby agents and fetch their relative velocity, and know if the near agent is approaching or leaving, also the direction relationship.
We'll decompose the velocity into the speed of X, Y, and Z, and use "+" or "-" to describe the approaching and leaving behavior.
In the following 4 examples we'll describe the relative speed of each agents:
Example 1: both agents' moving speeds are 3, and face to face,
If they are approaching (left picture), the relative velocity:

...


The blue agent is still no moving, and yellow one passed him


ChannelsLanguage
The agent can only detect only one near agent in his sound range sphere range for relative speed. So please use this carefully. sound.spx the

  • someone in my sphere with relative speed

...

  • X

...

  • someone in my sphere with relative speed

...

  • Y

...

  • someone in my sphere with relative speed

...

  • Z