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 support for AABB shaped obstacles to dtTileCache #215

Merged
merged 1 commit into from Jul 13, 2016

Conversation

cmf028
Copy link
Contributor

@cmf028 cmf028 commented Jul 10, 2016

The current dtTileCache supports cylindrical shaped obstacles, but this tends to be a very limiting obstacle shape that doesn't fit many use cases very well. An AABB is a bit more flexible and doesn't take much to implement.

It would be nice to also support extruded convex polys like recast does, but this is a good start.

@hymerman
Copy link
Member

Nice and simple. This looks good. 👍

return DT_SUCCESS;
}

dtStatus dtTileCache::addObstacle(const float* bmin, const float* bmax, dtObstacleRef* result)
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we can call this something else? I'm not a fan of an overload where the function does something semantically different (well I know, it adds an obstacle, but I mean a box vs a cylinder). Maybe something like addBoxObstacle instead?

@jakobbotsch
Copy link
Member

I agree, looks good aside from the naming thing I've commented on.

@grahamboree
Copy link
Member

Agreed. After the naming change we can merge this. Thanks! 👍

@cmf028
Copy link
Contributor Author

cmf028 commented Jul 10, 2016

Changed name as per comments

@jakobbotsch
Copy link
Member

Thank you, LGTM now. As a last thing, can you fix your Git settings so the commit is properly linked to your Github account?
See here: https://help.github.com/articles/why-are-my-commits-linked-to-the-wrong-user/#commits-are-not-linked-to-any-user

@grahamboree grahamboree merged commit 9052db4 into recastnavigation:master Jul 13, 2016
@grahamboree
Copy link
Member

Thanks!

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

4 participants