Commit Graph
54 Commits
Author SHA1 Message Date
ZhihuiLiu 6624e7aef5 fix an index error 2020-11-18 10:54:07 +01:00
aymarfisherman 7cca61dc41 Renamed all instances of 'extents' to 'halfExtents' (#279) 2017-08-20 17:05:51 +02:00
Ben Hymers a2730f9fdd Fix warnings; initialise all uninitialised class members 2016-02-26 08:40:53 +00:00
Graham Pentheny 66c6060e95 Fix a bunch of compiler warnings
* Removed some unused vars
* Fixed some signed/unsigned comparison mismatch warnings
* Cast some int's to size_t when appropriate
* Removed some redundant casts
* silenced warnings about implicit conversions that lose precision
* changed origMousePos to an array of ints to match mousePos
2016-01-10 22:41:38 -05:00
Krom Stern 4d3f406546 Fix as discussed in PR#111
Typo fix
2015-12-16 19:28:27 +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
grahamboree 45b36f4d75 Removed redundant dtSqrt function and replaced calls to it with dtMathSqrtf 2015-01-03 16:00:00 -05:00
grahamboree a792998286 Replaced math function macros with inline functions. 2015-01-02 18:10:45 -05:00
ZhongTang dc5f95eafa Fixed: a memory corrupt in DetourCrowd 2014-12-30 14:11:41 +08:00
Mikko Mononen 2797ff1a43 Merge pull request #60 from Kromster80/RemovingStrayCode
Removing stray code
2014-12-13 13:49:30 +02:00
Kromster80 7a57eb031f Update DetourProximityGrid.cpp 2014-12-13 11:40:53 +03:00
Kromster80 6799d49b1a Extra verbosity for var init 2014-12-07 14:11:46 +03:00
axelrodR 0122231ccf bug fix in the original code (div by 0); minPenalty check missed rejecting states. 2014-06-30 00:49:14 +03:00
axelrodR 61f5e67f1b changed the search pattern order
from: 1,2,3,4,5...   o'clock
to:   1,11,2,10,3,9  o'clock
2014-06-29 15:37:32 +03:00
axelrodR 6598ac26ca changes to improve readability 2014-06-29 13:39:07 +03:00
axelrodR 0a49552c25 optimized the pattern building to use rotations (1MUL+2ADD) instead of cosf, sinf 2014-06-29 12:54:12 +03:00
axelrodR 99d1e791ab Optimizing dtObstacleAvoidanceQuery::processSample. If the penalty is already worse than former samples penalty - exit the function 2014-06-26 21:45:56 +03:00
axelrodR a246038b2a Merge branch 'master' of https://github.com/memononen/recastnavigation 2014-05-27 23:30:28 +03:00
Mikko Mononen d477061f83 - fixed missing index in calls to get query filter
- fixed bug in dtCrowd:addAgent getNearestPolygon()
2014-05-24 18:48:43 +03:00
Hans Gaiser 973f0e2c2b Change active type from unsigned char to bool 2014-04-27 18:57:03 +02:00
Hans Gaiser 652317f9e6 Add commented improvements 2014-04-27 18:25:48 +02:00
Hans Gaiser 5290c8aac4 Add partial path result status for dtCrowdAgent 2014-04-27 17:34:36 +02:00
axelrodR 9b73c5cf51 Merge branch 'master' of https://github.com/memononen/recastnavigation 2014-04-23 14:53:04 +03:00
axelrodR a7f1d5e6a4 spelling mistakes 2014-04-23 14:52:54 +03:00
JimmyJames707 907b67bd18 query filter for each agent type with changes 2014-04-11 22:17:21 +10:00
JimmyJames707 ce552fd578 Revert "query filter for each agent type with changes"
This reverts commit b5f70b51a5.
2014-04-11 21:50:58 +10:00
JimmyJames707 b5f70b51a5 query filter for each agent type with changes 2014-04-11 21:45:42 +10:00
JimmyJames707 0f2b03a8c0 I would like to submit a query filter for each agent type:
https://groups.google.com/forum/#!searchin/recastnavigation/dtQueryFilter|sort:relevance|spell:false/recastnavigation/t-rFg2Ku9IY/PJNNkCjARccJ

Search on
queryFilterType and m_filters to see the changes.

Also in this code there are bugfixes, that have already been submitted
as issues. They can be ignored.

Possible bug with requestMoveVelocity and navmesh regeneration
https://groups.google.com/forum/#!topic/recastnavigation/E6khmmKJkzk

Bug fix for No guard on dtCrowd::getAgent?
https://groups.google.com/forum/#!topic/recastnavigation/yJ1EEVbOaKg
2014-04-11 16:50:57 +10:00
Mikko Mononen 6702143bc1 Fix for broken raycasts, changes how findNearestPoly works, slight API change
- test case supports raycasts
- changes how findNearestPoly works directly over polygons
- API change: findNearestPoly has additional parameter
2014-02-11 20:32:00 +02:00
Mikko Mononen 991c08f222 Fix for google code Issue 221
- fixed agent idx bound checks
2013-09-19 20:17:41 +02:00
Mikko Mononen 990b245179 Fixed google code Issue 228
- more defencive use of finNearestPoly() in dtCrowd
2013-09-17 21:29:51 +02:00
Mikko Mononen a8d1cba68c Fixed google code Issue 237
- check query status of moveAlongSurface() in path corridor
2013-09-17 21:07:41 +02:00
Mikko Mononen 5d3fd07074 Merge pull request #2 from mendsley/issue_ignored_qualifiers
Fix isolated cases that violate gcc's -Wignored-qualifiers
2013-09-16 13:51:15 -07:00
Mikko Mononen 9f632d99fd Merge pull request #1 from mendsley/issue_64bit_arithmetic
Fix 64bit pointer arithmetic warnings
2013-09-16 11:42:58 -07:00
Matthew Endsley b0e4e6a834 Add wrappers for the standard math library
Simplifies transition to software based math libraries
for projects requiring determinism.
2013-09-15 20:09:01 -07:00
Matthew Endsley 7a2a4b24c1 Fix isolated cases that violate gcc's -Wignored-qualifiers 2013-09-15 19:53:38 -07:00
Matthew Endsley 604aae43bd Fix 64bit pointer arithmetic warnings 2013-09-15 19:35:52 -07:00
Mikko Mononen 17fae045a2 - improved replanting logic (better use of existing path)
- added priority q to help end-of-path replanting contestation
2012-05-31 10:36:35 +00:00
Mikko Mononen 00edec6ffb - dtCrowd API Changed!
- finalizeSlicedFindPathPartial() returns best if no existing match found
- refactored crowd move requests
- removed adjustMoveTarget()
- added requestMoveVelocity() and resetMoveTarget()
- improved path replanning robustness
- added move visualization to crowd tool
2012-05-31 09:07:54 +00:00
Mikko Mononen e6b1d141d2 Fixed warnings when compiling with -Wshadow. 2012-02-22 17:25:46 +00:00
Stephen Pratt 0ec4f993cb Crowd: Detail API documentation for primary members declared in DetourCrowd.h.
Also includes some minor updates to the path corridor documentation.
2011-10-04 18:57:17 +00:00
Stephen Pratt dee5f6a9bc Crowd: Detail API documentation for members declared in DetourPathCorridor.h. 2011-09-26 19:10:54 +00:00
Mikko Mononen 9b80662206 Removed misplaced stdio.h. 2011-08-01 10:53:18 +00:00
Mikko Mononen 1b6ca5a94a Fixed findStraightPath() to return partial results. Fixed main.cpp FPS throttling. Added initial support for path replanning in DetourCrowd. 2011-08-01 10:48:56 +00:00
Mikko Mononen 76444aa747 - Updated win32 project
- Fixed VC compile errors
2011-03-25 10:13:27 +00:00
Mikko Mononen f85bb4c52c Fix for strange neighbours. Was using m_agents, instead agents in few places. 2011-03-15 07:30:55 +00:00
Mikko Mononen e238288549 getNeibours() was accessing wrong agent list. 2011-03-11 17:28:39 +00:00
Mikko Mononen fdb4ad30f7 getPolyWallSegments can return both walls and portals. Added userData pointer to dtCrowdAgent. 2011-02-11 08:43:05 +00:00
Mikko Mononen 5b4f8b6047 Allow different obstacle avoidance parameters. Changed update flags to be per agent, not per crowd. Added optional separation to steering. Added UI to change obstacle avoidance quality. 2011-02-06 12:52:08 +00:00
Mikko Mononen 6271b40ae6 Updated VC project and fixed compile warnings. 2011-01-31 07:33:01 +00:00