82 Commits

Author SHA1 Message Date
andriyDev
b921dd16b1
Make installing PDBs optional. (#611)
PDBs are not necessarily generated, even in Debug configuration. For example, if the CXX_FLAGS are set to /Z7, debug symbols are embedded, and so the PDBs are not generated. This prevents installing from failing by marking these PDBs as optional.

Fix #610
2023-03-19 22:31:18 -04:00
Graham Pentheny
b43c82c808
Removed _USE_MATH_DEFINES directive (#596)
Since none of the `M_` prefixed constants are used anywhere in the code, this is unnecessary.  It's also Windows-specific, so these non-standard defines shouldn't be used anyway.

Ref: https://learn.microsoft.com/en-us/cpp/c-runtime-library/math-constants?view=msvc-170
2022-12-29 15:09:01 -05:00
SpaceIm
53f779fa8d
install CMake config file with exported targets (#575) 2022-11-20 15:42:04 -05:00
Graham Pentheny
5111139558
Fixes for many low-severity compiler warnings (#576)
* Fixes for many low-severity compiler warnings

Mostly a lot of pedantic things like end-of-file newlines and commas on the last enum value.  However some fixes like the weak v-tables warnings fixes might help with code gen.  It's unclear if the linker is able to elide multiple copies of the same type's v-table in different translation units, (sometimes it can) but these fixes ensure we don't have to rely on it.
2022-11-11 21:03:03 -05:00
Bret Curtis
63a4ee4c1e
Add version and pkgconfig (#474)
* Add version and pkgconfig

* simply versioning

Co-authored-by: Bret Curtis <bret.curtis@pegus.digital>
2021-03-05 17:24:04 +01:00
elsid
1f25f9cc29 Install .pdb files only with MSVC 2021-03-05 17:21:50 +01:00
ZhihuiLiu
6624e7aef5 fix an index error 2020-11-18 10:54:07 +01:00
Yoann Potinet
65b314a44e Fix shared library build 2020-10-31 10:38:31 +01:00
Jan Haller
e679507845
Improve debug builds for MSVC (#443)
* Add -d suffix for debug libraries

* Export PDB files for each Debug library
2020-10-30 10:41:54 +01:00
Alexey Sokolov
9337e12418
Several fixes for make install (#437)
* Don't install test

* Install to the correct directory (e.g. lib64)

* Install includes to /usr/include/recastnavigation
2020-09-24 10:08:03 +02:00
elsid
7bfd9a1d4c Add aliases with namespace for library build targets 2018-10-31 23:13:42 +01:00
elsid
2b31aa9d79 Bind include directories to library build target 2018-10-31 23:13:42 +01:00
elsid
658b32784f Add dependencies between libraries to allow linker to resolve symbols
when build dynamic libraries
2018-10-31 21:24:45 +01:00
Roman Siromakha
4566d01c8f Support build by CMake (#310) 2018-04-21 00:16:52 +02:00
aymarfisherman
7cca61dc41 Renamed all instances of 'extents' to 'halfExtents' (#279) 2017-08-20 17:05:51 +02:00
Graham Pentheny
95658e7b6c Added eof newlines. Fixes #198 2016-03-30 13:48:05 -04:00
Ben Hymers
a2730f9fdd Fix warnings; initialise all uninitialised class members 2016-02-26 08:40:53 +00:00
Graham Pentheny
b7a83e0afb Fixed rule of 3 violations in many places.
* Added virtual qualifier to a few destructors in subclasses.
* Removed a few empty destructors that didn't need to be explicitly defined.
* Fixed a few typos
* Removed unnecessary empty virtual destructors in some classes with parent's who derrived from a class with a virtual destructor
2016-01-20 11:57:32 -05: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
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
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
Mikko Mononen
3b0dc620e0 Merge pull request #57 from Kromster80/SyncVarName
Sync var name
2014-12-13 13:47:52 +02:00
Kromster80
7a57eb031f Update DetourProximityGrid.cpp 2014-12-13 11:40:53 +03:00
Kromster80
48f20f08f2 Update DetourProximityGrid.h 2014-12-13 11:40:30 +03:00
Kromster80
a83d2a0c07 Leftovers?
"Looks like they are left overs from some code refactoring. --mikko"
2014-12-13 11:10:20 +03:00
Kromster80
f7d6717081 Update DetourProximityGrid.h 2014-12-08 16:00:26 +03:00
Kromster80
6571da958c Synced Header and CPP variable names 2014-12-07 18:19:32 +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
14c8703dbd forgot the header file... 2014-06-29 15:06:01 +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
52efad386b query filter for each agent type
This has the changes Mikko requested
2014-04-11 22:36:00 +10:00
JimmyJames707
e29b2c8a51 query filter for each agent type
This has the changes Mikko requested
2014-04-11 22:33:33 +10: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 b5f70b51a5e627f98a6f5d28aa5704afa9cdff6a.
2014-04-11 21:50:58 +10:00