Commit Graph

58 Commits

Author SHA1 Message Date
Graham Pentheny
3a9c6ab3b3 Added RightAlignText helper function 2025-08-05 13:36:33 -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
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
375dd6f68d Removed unnecessary accessors for sample tool state 2025-07-22 00:54:07 -04:00
Graham Pentheny
abb3616893 Removed unnecessary accessor 2025-07-22 00:45:36 -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
8c75eeed3c Removed unnecessary accessor for inputGeometry 2025-07-21 01:12:19 -04:00
Graham Pentheny
7eafa3f470 Autoformat 2025-07-21 00:57:23 -04:00
Graham Pentheny
a89ac998e9 Remove hungarian notation from crowd tool field names 2025-07-21 00:56:03 -04:00
Graham Pentheny
95a7b45c32 More WIP DearImGUI conversion 2025-07-13 12:43:10 -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
Graham Pentheny
a1d3fe8086 convert SampleToolType to enum class 2025-03-31 01:02: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
Zeno Ahn
9f9efe943e Removed unnecessary comment 2018-09-02 15:03:41 +02:00
aymarfisherman
7cca61dc41 Renamed all instances of 'extents' to 'halfExtents' (#279) 2017-08-20 17:05:51 +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
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
Jakob Botsch Nielsen
09080b5272 Fix time measuring on Windows
The demo relied on the build context returning accumulated times in
microseconds. On Windows this was using QueryPerformanceCounter directly
which has a higher resolution, thus returning wrong measured times. We
now report the accumulated times in microseconds on all platforms.
2016-01-10 18:43:34 +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
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
grahamboree
b493e7e6f6 Added rcIngoreUnused which can be called to ignore unused parameters. 2013-10-14 16:32:20 -04: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
76e2dcfc6d Fix for issue 197. 2012-04-01 10:07:21 +00:00
Mikko Mononen
e6b1d141d2 Fixed warnings when compiling with -Wshadow. 2012-02-22 17:25:46 +00:00
Mikko Mononen
336409d037 Added tool states, Crowd can be let run in the BG while changing mesh, Added off-mesh connection support for tile cache, Fixed tile cache area generation, Added debugdraw for tile cache build steps, Migrated to Xcode4. 2012-02-04 21:27:07 +00:00
Mikko Mononen
54e0e86ff2 Added simple Detour navmesh flood fill and prune tool. 2011-09-11 11:08:55 +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
838d0657bd Temp fix for neighbour rendering. 2011-03-15 07:31:52 +00:00
Mikko Mononen
496ee57897 Added userData pointer for dtCrowdAgent. 2011-02-06 13:13:42 +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
7f2696cbbf First implementation of DetourCrowd off-mesh connection handling. 2011-01-30 17:11:20 +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
1be9de72d8 Detour version change! Added user ID per off-mesh connection. Fixed off-mesh connection draw flags after using off-mesh con tool. 2010-11-07 15:21:38 +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
30b581b67d Simplified crowd tool UI. 2010-10-29 08:24:09 +00:00
Mikko Mononen
aa18cf4a8d Tiny fix for imgui drawing. Implemented adjusting of the moving target without path finding. 2010-10-29 07:28:20 +00:00
Mikko Mononen
7f84699bfe Cleaned up and simplified Detour obst. avoidance. Simplified path corridor, spinned off LocalBoundary to manage edge segs. 2010-10-20 17:13:47 +00:00
Mikko Mononen
347071a563 Renamed Mover to PathCorridor. Moved dynamic stuff from PathCorridor to Agent and cleaned up PC. 2010-10-01 13:12:34 +00:00
Mikko Mononen
264440dcdd Refactoring Mover. Moved path query handling to CrowdManager. Made mover a class and made member vars hidden. 2010-10-01 12:31:50 +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
c11a3a950e Added proximity grid for agents. 2010-10-01 08:21:43 +00:00
Mikko Mononen
2edd434214 Refactoring crowd code. Added async path query. 2010-09-20 07:00:47 +00:00
Mikko Mononen
a92660c62f Cleaning up crowd source code. 2010-09-12 16:03:32 +00:00
Mikko Mononen
7ee6e96e5a - fixed the code to compile on win32 2010-09-10 06:53:33 +00:00