We'd love for you to contribute to our source code and to make Recast and Detour even better than they are today! Here are the guidelines we'd like you to follow:
This project adheres to the Open Code of Conduct. By participating, you are expected to honor this code.
If you have questions about how to use Recast or Detour, please direct these to the Google Group discussion list. We are also available on Gitter.
If you find a bug in the source code or a mistake in the documentation, you can help us by submitting an issue to our GitHub Repository. Even better you can submit a Pull Request with a fix.
Please see the Submission Guidelines below.
You can request a new feature by submitting an issue to our GitHub Repository. If you would like to implement a new feature then consider what kind of change it is:
Before you submit your issue search the GitHub Issues archive, maybe your question was already answered.
If your issue appears to be a bug, and hasn't been reported, open a new issue. Help us to maximize the effort we can spend fixing issues and adding new features, by not reporting duplicate issues. Providing the following information will increase the chances of your issue being dealt with quickly:
duDebugDraw
and call some methods from DetourDebugDraw.h. Seriously, just do it, we'll definitely ask you to if you haven't!rcContext
.Here is a great example of a well defined issue: https://github.com/recastnavigation/recastnavigation/issues/12
If you get help, help others. Good karma rulez!
Before you submit your pull request consider the following guidelines:
Make your changes in a new git branch:
git checkout -b my-fix-branch master
git commit -a
Note: the optional commit -a
command line option will automatically "add" and "rm" edited files.
Squash any work-in-progress commits (by rebasing) to form a series of commits that make sense individually. Ideally the pull request will be small and focused enough that it fits sensibly in one commit.
git rebase -i origin/master
git push origin my-fix-branch
In GitHub, send a pull request to recastnavigation:master
.
If we suggest changes then:
my-fix-branch
).If you have rebased to squash commits together, you will need to force push to update the PR:
```shell
git rebase master -i
git push origin my-fix-branch -f
```
That's it! Thank you for your contribution!
After your pull request is merged, you can safely delete your branch and pull the changes from the main (upstream) repository:
Delete the remote branch on GitHub either through the GitHub web UI or your local shell as follows:
git push origin --delete my-fix-branch
git checkout master -f
Delete the local branch:
git branch -D my-fix-branch
git pull --ff upstream master
Do your best to factor commits appropriately, i.e not too large with unrelated things in the same commit, and not too small with the same small change applied N times in N different commits. If there was some accidental reformatting or whitespace changes during the course of your commits, please rebase them away before submitting the PR.
Please format commit messages as follows (based on this excellent post):
Summarize change in 50 characters or less
Provide more detail after the first line. Leave one blank line below the
summary and wrap all lines at 72 characters or less.
If the change fixes an issue, leave another blank line after the final
paragraph and indicate which issue is fixed in the specific format
below.
Fix #42
Important things you should try to include in commit messages include: