Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separation #18

Open
Tracked by #4
st-pasha opened this issue Jan 6, 2022 · 2 comments
Open
Tracked by #4

Separation #18

st-pasha opened this issue Jan 6, 2022 · 2 comments

Comments

@st-pasha
Copy link
Collaborator

st-pasha commented Jan 6, 2022

Description of Separation from https://www.red3d.com/cwr/steer/gdc99/:

Separation steering behavior gives a character the ability to maintain a certain separation distance from others nearby. This can be used to prevent characters from crowding together. To compute steering for separation, first a search is made to find other characters within the specified neighborhood. This might be an exhaustive search of all characters in the simulated world, or might use some sort of spatial partitioning or caching scheme to limit the search to local characters. For each nearby character, a repulsive force is computed by subtracting the positions of our character and the nearby character, normalizing, and then applying a 1/r weighting. (That is, the position offset vector is scaled by 1/r 2.) Note that 1/r is just a setting that has worked well, not a fundamental value. These repulsive forces for each nearby character are summed together to produce the overall steering force. See Figure 14:

separation behavior

@Perumallpardhiv
Copy link

I will try this.
Assign me

@st-pasha
Copy link
Collaborator Author

Go for it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants