25 Commits
Author SHA1 Message Date
elsid 6464d99134 Throw system error on open file failure 2025-01-06 23:38:32 +01:00
elsid 50f4471750 Use R-tree for dynamic priority of navmesh async job 2024-04-13 19:51:16 +02:00
elsid 61c69c5563 Use proper prefix for CollisionShapeType 2024-04-13 19:51:16 +02:00
elsid 798f3cc385 Support ESM4 record FullName, CellFlags, X, Y fields by esmtool 2023-07-30 18:20:10 +02:00
elsid e00eb50587 Remove stepping from findSmoothPath
This is not used anyway. There are features like smooth movement which remove
all redundant points.

Use single findStraightPath call instead of multiple.
2023-07-22 18:08:40 +02:00
elsid 9817f4ca9a Find closest position on navmesh to start and end before poly path
Start and end might not be located on navmesh and findPath may give wrong
results.
2023-07-22 17:24:51 +02:00
elsid f9e9368fda Add operator<< for DetourSettings 2023-06-10 13:14:52 +02:00
elsid dd08154b23 Add operator<< for DetourNavigator::AreaCosts 2023-06-10 13:14:52 +02:00
elsid ce5fbd6b68 Write separator between Detour status flags 2023-06-10 13:14:52 +02:00
elsid 15e8f0b53c Check input and report errors via RecastContext
Recast functions have preconditions for arguments they don't validate. This may
produce garbage data which may lead to crash. Check arguments and log when they
are invalid.

Do not throw exceptions when these function calls fail, capture Recast reported
errors via RecastContext inherited from rcContext and log them.
2022-12-19 19:46:45 +01:00
elsid 843753da14 Remove unused includes 2022-10-09 16:44:18 +02:00
clang-format-botandζeh Matt ddb0522bbf Apply clang-format to code base 2022-09-22 21:35:26 +03:00
elsid d15e1dca84 Use R-tree for objects to be used for navmesh generation
Instead of storing a set of objects per tile.
2022-09-07 22:51:56 +02:00
elsid ab1ddc690e Do not check getPolyHeight status
It may fail in some cases depending on a platform without obvious reason.
2022-08-24 23:30:36 +02:00
elsid e1bed86d7e Do single navigator update per frame
Primarily for crossing cell border case. Each Navigator::update call has a cost.
Doing it multiple times per frame increased frame duration on cell loading.

Call Navigator::wait only when cell has changed but do not use
Scene::hasCellChanged because it doesn't always indicates it.
2022-08-20 19:15:55 +02:00
elsid 8b8e4f78b6 Support cylinder and rotating box collision shape types for actors
Cylinder collision shape should give the best consistency between physics
simulation and pathfinding. Rotating box is already used by some actors, so
add it to have the same collision shape type for all actors.
2022-07-30 14:28:21 +02:00
elsid 1a5932a669 Move std::ostream& operator<< to .cpp 2022-06-26 22:43:53 +02:00
jvoisinandPetr Mikheev 4e4debb1cb Remove even more of boost::filesystem 2022-05-25 18:29:02 +00:00
elsid 01c712d5f1 Split navigator settings into subtypes
Mostly to distinguish settings that affect properties of the generated navmesh.
2021-12-10 23:55:03 +01:00
elsid 88ac77df1f Fix writing to file for RecastMesh
Add missing scaling and y, z coordinates swap.
2021-10-09 17:30:37 +02:00
elsid af7059373c Make RecastMesh independent from the order of RecastMeshBuilder calls
To make sure RecastMesh objects are equal if built with the same data but in
different order. Will be used later when there will be more than one place
building RecasMesh objects.
2021-07-26 00:22:20 +02:00
Andrei Kortunov 3704acf857 Unify streams usage to support non-ASCII paths (bug #5239) 2020-01-03 07:10:17 +04:00
elsid 373adc6ec4 Option to enable/disable file names revisions 2018-10-13 22:16:27 +03:00
elsid 41caca24ee Options to enable/disable write recast mesh and nav mesh into file 2018-10-13 22:16:26 +03:00
elsid fafba8ea0c Use recastnavigation to find path 2018-10-13 22:16:25 +03:00