Commit Graph
76 Commits
Author SHA1 Message Date
Graham Pentheny 198be51fba Fixed label collisions in include and exclude flags checkboxes 2025-08-05 12:09:36 -04:00
Graham Pentheny 1c72317236 Fixed screenspace text y position
Since dearImGUI uses raster coordinates
2025-08-05 12:09:14 -04:00
Graham Pentheny c80b9b7b41 Removed unnecessary agentMaxClimb accessor 2025-07-22 01:01:06 -04:00
Graham Pentheny a925189187 Removed unnecessary agentHeight accessor 2025-07-22 01:00:03 -04:00
Graham Pentheny 0cceb7fb92 Removed unnecessary agent radius accessor 2025-07-22 00:58:52 -04:00
Graham Pentheny 91064ae3e8 Removed unnecessary debug draw accessor 2025-07-22 00:56:27 -04:00
Graham Pentheny b9d5585b5a Clean up #include's 2025-07-22 00:43:45 -04:00
Graham Pentheny 425687913e Removed unnecessary pointer member
Since we can get the navmesh query through the sample pointer.
2025-07-22 00:35:47 -04:00
Graham Pentheny 6af2e60518 Removed unnecessary pointer member
Since it's redundant to hold a sample pointer and a pointer to the navmesh field in the sample.
2025-07-22 00:34:19 -04:00
Graham Pentheny 2a0579574a Removed Hungarian notation from NavMeshTesterTool 2025-07-22 00:31:52 -04:00
Graham Pentheny 427c0428b9 Removed unnecessary accessor for nav mesh query 2025-07-21 01:20:23 -04:00
Graham Pentheny 6331eda278 Remove unnecessary accessor for navmesh field 2025-07-21 01:18:34 -04:00
Graham Pentheny d534b4dc14 WIP DearImGui conversion 2025-07-12 15:02:54 -04:00
Graham Pentheny 6b906538dc WIP DearImGui conversion 2025-07-10 11:11:54 -04:00
Graham Pentheny 032830fa69 Clean up remaining demo code 2025-04-26 00:42:16 -04:00
Josue Zamudio 99b6c3306e Removed fixupCorridor and replaced with dtMergeCorridorStartMoved (#637)
* removed fixupCorridor and replaced function calls with dtMergeCorridorStartMoved

* removed fixupCorridor and replaced function calls with dtMergeCorridorStartMoved in NavMeshTesterTool.cpp

Fix #634
2023-06-25 15:50:50 -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
Geoyeob Kim 46654531e4 Fix 'dtRandomPointInConvexPoly()' returning a garbage value if s == 1.0f. (#271) 2017-05-15 16:26:35 +02:00
Domenico Albani 03eb2f92f3 Make RecastDemo colors more meaningful (#254)
Implement a SampleDebugDraw which will color area types meaningfully, for example
color water as blue, grass as green and so on.
2017-02-02 20:27:43 +01: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 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
grahamboree 45b36f4d75 Removed redundant dtSqrt function and replaced calls to it with dtMathSqrtf 2015-01-03 16:00:00 -05:00
Mikko Mononen 56b6e1173d Merge pull request #58 from Kromster80/CopyPasteFix
Copy paste fix
2014-12-13 13:48:43 +02:00
Kromster80 dfed678d3d Fixed copy/paste bug 2014-11-28 18:40:53 +03:00
Kromster80 96ff08a255 Removed unnecessary assignments 2014-11-27 22:41:28 +03:00
axelrodR 232187b9d6 changed the default options of the pathfinder to 0 (i.e. no raycasts), changed the the tester tool to display all points along the sliced path (a better default for non flat terrain). 2014-02-27 14:21:09 +02:00
axelrodR 5686f4a83c changed the NavMeshTesterTool so that pathFind and straightPath use the default options (i.e. not any-angle) while sliced path uses the any angle search. 2014-02-26 21:30:24 +02: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 bc964f9994 Fix for U-turn path case 2014-01-21 19:15:08 +02:00
grahamboree 683acbb11c Silenced double->float conversion warning. 2013-10-14 16:38:03 -04:00
Mikko Mononen 15cd962073 Adjust result height for raycasting 2013-09-25 19:53:13 +02:00
Mikko Mononen 36a967ffcd Fixed google code Issue 234 2013-09-17 21:10:14 +02:00
Mikko Mononen de6fd8c3ef - use "cylinder distance" for nearest point in polygon
- added option for findStraightPath() to append vertices at get edge crossings
- added scale parameter for .obj loader
2012-09-05 05:57:31 +00:00
Mikko Mononen a02cc64e4b - fixed issue 203
- fixed debug draw for partial paths
2012-06-12 03:53:16 +00:00
Mikko Mononen 64802ecd0e - Improved unconnected off-mesh connection debug draw
- Fixed connecting off-mesh links which connect to the same tile x,y but different layer
- Fixed crash in navmehs query closestPointOnPolyInTile() when the poly is off-mesh connection
2012-06-12 03:28:43 +00:00
Mikko Mononen cd3a68dd9b Random polygon selection for Detour. 2012-02-27 07:17:51 +00:00
Mikko Mononen e6b1d141d2 Fixed warnings when compiling with -Wshadow. 2012-02-22 17:25:46 +00:00
Mikko Mononen 54e0e86ff2 Added simple Detour navmesh flood fill and prune tool. 2011-09-11 11:08:55 +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 4a81213b3b Refactored and cleaned up CrowdManager and moved it to DetourCrowd. Update tool UI layout, context sensitive help is now rendered as overlay. 2011-01-29 15:28:28 +00:00
Mikko Mononen 08741e894c DETOUR return status codes changed, check blog! Changed Detour status codes to be bitfields which describes the highlevel status plus some details about the failure or quality of the result. 2010-11-26 11:56:34 +00:00
Mikko Mononen ccf401d3da - added finalizeSlicedFindPathPartial()
- added handleStep()/handleToggle() to samples
- changed how crowds are rendered
- added path topology optimization step
2010-11-07 10:56:48 +00:00
Mikko Mononen e5d603ac92 **API CHANGED** Implemented issue 124. Detour API returns error codes. 2010-10-29 12:08:13 +00:00
Mikko Mononen c9df5dc995 Changed dtNavmeshQuery.getPolyWallSegments() to require max number of segments to store. 2010-10-15 06:35:40 +00:00
Mikko Mononen b6308d8908 Removed closed list coloring from crowd tool. Fixed navmesh draw flags in navmesh tester. 2010-10-01 08:41:36 +00:00
Mikko Mononen 8a2963bce0 Fix for issue 119. 2010-09-17 07:37:00 +00:00
Mikko Mononen 0e4aa30e85 Changed dtQueryFilter to contain the flags check and cost calculation, can customized. Fix for issue 47 and issue 103. 2010-08-20 09:30:37 +00:00
Mikko Mononen 55360f6ee5 Missing files for R197 2010-08-19 09:55:12 +00:00
Mikko Mononen 5f7ac70cba win32 compile and project fixes, made tool UI more clear 2010-08-17 18:30:58 +00:00