Commit Graph
588 Commits
Author SHA1 Message Date
Jakob Botsch Nielsen 1b50ceaa9a Merge pull request #144 from grahamboree/SDL2
Updated RecastDemo to SDL2
2016-01-05 09:00:21 +01:00
Graham Pentheny 2eb3abfb60 Updated RecastDemo to SDL2
* Renamed a bunch of variables in main.cpp to be more descriptive.
* Removed unnecessary SDLMain.h and SDLMain.m OSX objective-c class as well as the plist, strings, xib and icns files, which are not needed.
* included cstdio in imguiRenderGL since SDL2 doesn't do it for us.
* Updated premake5 script to support SDL2 and to set the debug directory, as well as copy the SDL2.dll to the target directory on Windows.
* Updated readme with more descriptive, platform-specific demo project setup instructions
* Updated appveyor build script to build vs2015 as well.
* Updated Travis build script to build SDL2 from source, because they use Ubuntu 12.04 which doesn't have the libsdl2-dev package in its repositories.
2016-01-04 18:56:51 -05:00
Graham Pentheny 43a20cce42 Merge pull request #109 from Kromster80/patch-2
Updated dtFindPathOptions description and options
2016-01-02 10:30:37 -05:00
Ben Hymers d6ab8fdf86 Merge pull request #139 from Janiels/fix-113
Correctly remove off mesh links to other layers
2015-12-30 12:05:59 +00:00
Jakob Botsch Nielsen e2cc5ae419 Correctly remove off mesh links to other layers
External links representing off mesh connections between layers in the
same tile location would not be correctly removed. These links had
side = 0xff which were skipped during tile removal under the assumption
that these links were internal.

Also correct some comments in the same place.

Fix #113
2015-12-29 17:51:15 +01:00
Ben Hymers 6285b17587 Merge pull request #102 from rafzi/allocfix
handle the case when allocSpan fails to allocate memory
2015-12-18 17:23:02 +00:00
Rafael Stahl 15025e8519 handle the case when allocSpan fails to allocate memory. adds bool return types to rcAddSpan, rcRasterizeTriangle and rcRasterizeTriangles 2015-12-18 16:41:02 +01:00
Ben Hymers 724092a9ec Merge pull request #137 from rafzi/scopedtimer
add rcScopedTimer to fix timers not being stopped on all paths and to…
2015-12-18 15:24:07 +00:00
Rafael Stahl 6d3c9b38ba add rcScopedTimer to fix timers not being stopped on all paths and to prevent it in the future. 2015-12-18 14:48:31 +01:00
Ben Hymers 68ec46a685 Merge pull request #136 from Janiels/null-check
findNearestPoly now fails when nearestRef is null, and only assigns it when the function succeeds
2015-12-17 18:14:41 +00:00
Jakob Botsch Nielsen 643a3a7043 findNearestPoly now fails when nearestRef is null, and only assigns it when the function succeeds 2015-12-17 18:57:06 +01:00
Ben Hymers 0ccfd632fa Merge pull request #133 from Janiels/master
Use intermediate variable for nearest point in findNearestPoly
2015-12-17 17:40:57 +00:00
Jakob Botsch Nielsen 35fb7d5c16 Merge pull request #78 from grahamboree/RC_SPAN_HEIGHT_BITS_fix
Use RC_SPAN_HEIGHT_BITS when setting the bitfield size of rcSpan::smin and rcSpan::smax
2015-12-17 14:16:02 +01:00
Jakob Botsch Nielsen d742e04cc4 Merge pull request #95 from Sandern/fix-oldtile-not-removed
Make sure to remove the old tile if the new tile is empty (due to temp obstacles)
2015-12-17 14:06:30 +01:00
Jakob Botsch Nielsen ede84bae22 Merge pull request #103 from jackpoz/warning_fix
Fix 2 "unused parameter" build warnings
2015-12-17 13:52:17 +01:00
Graham Pentheny 5b2dce6a18 Merge pull request #134 from grahamboree/Comments
Better documentation for a few private fields in dtCrowdAgent
2015-12-16 23:41:59 -05:00
Graham Pentheny b9804c5210 Better documentation for a few private fields in dtCrowdAgent as discussed in PR #110 2015-12-16 23:37:41 -05:00
Jakob Botsch Nielsen 7d924b1eee Use intermediate variable for nearest point in findNearestPoly
When the same point is used as center and as nearestPt, the function
would override center and give wrong results.

Fix #118
2015-12-16 18:18:11 +01:00
Ben Hymers 7b4d18f459 Merge pull request #132 from Kromster80/patch-5
Fix as discussed in PR#111
2015-12-16 16:35:41 +00:00
Krom Stern 4d3f406546 Fix as discussed in PR#111
Typo fix
2015-12-16 19:28:27 +03:00
Ben Hymers e2f13c2bab Set AppVeyor and Travis CI badges to recastnavigation repo in README 2015-12-16 02:06:16 +00:00
Ben Hymers 7c9460cfb3 Merge pull request #131 from hymerman/ci-squashed
Add AppVeyor and Travis CI build scripts
2015-12-16 01:57:41 +00:00
Ben Hymers e558e98592 Add AppVeyor and Travis CI build scripts
Build scripts download SDL, download (or build) premake5, generate projects, then build, in several configurations and platforms

Project now builds with premake5 instead of premake4 to allow VS2015 project generation
Tweaked SDL directory dependency to work better with CI
Update README
2015-12-16 01:33:18 +00:00
Mikko Mononen 2ea77f6cf4 Merge pull request #119 from richard-fine/features/raycast-edgeinfo
Include hit edge index in dtRaycastHit.
2015-11-15 23:55:18 +02:00
Richard Fine 67736ae7d5 Include hit edge index in dtRaycastHit.
This makes it simpler to investigate exactly what is blocking a ray - for example, if an agent cannot move onto a polygon due to QueryFilter flags, then this provides a way for the agent to find out which flags it needs to have and to perform a state change which alters its movement flags.
2015-11-15 21:46:30 +00:00
Mikko Mononen 2bcd32b0a3 Merge pull request #114 from huanzai/patch-1
Update DetourTileCache.cpp
2015-10-10 11:30:11 +03:00
huanzai 3a1256ecb8 Update DetourTileCache.cpp
wrong type of return value
2015-10-10 12:28:07 +08:00
Krom Stern bbbdc0ec64 Updated dtFindPathOptions description and options
"Options for dtNavMeshQuery::FindPath" is not correct, the option is used in SlicedFindPath only
DT_FINDPATH_LOW_QUALITY_FAR is not used anywhere

I would also add, that even though raycast considers costs, does so not very well :-(
2015-08-29 17:22:35 +03:00
jackpoz 18b537c23f Fix 2 "unused parameter" build warnings 2015-06-28 21:32:16 +02:00
Mikko Mononen 1dd5cf1883 Updated readme to explain which SDL dll to use on windows. 2015-06-22 18:49:53 +03:00
Mikko Mononen 887f208332 Merge pull request #101 from CharlesJClark/CharlesJClark-patch-1
Update RecastMesh.cpp
2015-06-21 22:06:33 +03:00
CharlesJClark 6730d4ddda Update RecastMesh.cpp
Fixed validation checks of allocations.
2015-06-19 09:33:27 -07:00
Sandern 838fc67ab0 Fix old mesh tile not removed when new tile is empty 2015-05-05 16:42:14 +02:00
Mikko Mononen cadc3b0b14 Merge pull request #94 from leif81/resetmovetarget
reset agent desired velocity in resetMoveTarget
2015-05-01 21:33:44 +03:00
Leif Gruenwoldt 2ec9270b34 reset agent desired velocity in resetMoveTarget
Otherwise, if velocity was non zero at time resetMoveTarget is called the agent would continue to move indefinitely at that velocity (a straight line) which was not the intended behaviour.

As discussed in https://groups.google.com/forum/#!topic/recastnavigation/QoLNGz5o6e8
2015-05-01 13:49:12 -04:00
Mikko Mononen acbbe507fd Merge pull request #82 from Kromster80/loopFix
Loop fix and MAX_SEARCH
2015-02-19 14:23:07 +02:00
Kromster80 3ca4db4864 Fixed loop overrun 2015-02-19 14:03:59 +03:00
Graham Pentheny df6fac219b Use RC_SPAN_HEIGHT_BITS when setting the bitfield size of smin and smax in rcSpan. 2015-01-31 17:18:02 -05:00
Mikko Mononen 2ab396857b Merge pull request #68 from grahamboree/math_functions
Removed redundant dtSqrt function and replaced calls to it with dtMathSqrtf
2015-01-07 10:22:33 +02:00
Kromster80 5c45736347 MAX_SEARCH constant instead of hardcoded value 2015-01-06 23:26:14 +03:00
Mikko Mononen c54f2a6e71 Merge pull request #70 from Kromster80/DumpFix
Fixed what looks like a c/p bug
2015-01-06 16:15:21 +02:00
Kromster80 0bc724b32a Fixed what looks like a c/p bug 2015-01-06 17:12:03 +03:00
grahamboree 45b36f4d75 Removed redundant dtSqrt function and replaced calls to it with dtMathSqrtf 2015-01-03 16:00:00 -05:00
Mikko Mononen 2f788530f5 Merge pull request #67 from grahamboree/removed_macros
Replaced math function macros with inline functions.
2015-01-03 01:17:35 +02:00
grahamboree a792998286 Replaced math function macros with inline functions. 2015-01-02 18:10:45 -05:00
Mikko Mononen 0fee5ac592 Merge pull request #66 from grahamboree/gitignore
Added Visual Studio 2013 idb files to gitignore.
2015-01-03 01:04:52 +02:00
grahamboree 75dc9eb470 Added Visual Studio 2013 idb files to gitignore. 2015-01-02 17:46:38 -05:00
Mikko Mononen 86d57bd5e9 Merge pull request #61 from Kromster80/master
Removed superflous memset
2014-12-31 20:30:25 +02:00
Mikko Mononen 2fe5c4fb0c Merge pull request #62 from grahamboree/master
A few edge-case memory leak fixes and an uninitialized pointer.
2014-12-31 20:25:59 +02:00
Mikko Mononen b3f1e28c71 Merge pull request #63 from speakfool/master
Fixed a memory corrupt in DetourCrowd
2014-12-31 20:25:08 +02:00