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

Add 16bit indices, cos angle precalculation and agent filtering options #699

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

TheBrooster
Copy link

@TheBrooster TheBrooster commented Apr 11, 2024

  • Added rcMarkWalkableTriangles and rcClearUnwalkableTriangles function overrides that allows the user to pass in 16bit index arrays. Also added ..CosAngle functions to allow for a precalculated cosine to be passed when called repeatedly.
  • Added agent filter groups to allow an agent to ignore specific groups during neighbour collection.

for (int i = 0; i < nids; ++i)
{
const dtCrowdAgent* ag = agents[ids[i]];

if (ag == skip) continue;

// Should `skip` ignore their neighbour `ag`?
if ((ag->params.agentGroupFlags & ignoreGroupMask) != 0) continue;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we want to perform the agent filtering inside the dtProximityGrid::queryItems call on line 195 above?

@TheBrooster TheBrooster marked this pull request as ready for review April 11, 2024 13:09
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 this pull request may close these issues.

None yet

1 participant