aboutsummaryrefslogtreecommitdiff
path: root/src/common/Collision
AgeCommit message (Collapse)Author
2022-02-13Core/Misc: Cleanup unused includesShauren
2022-02-04Core/Misc: Fix issues reported by static analysis (#25351)Giacomo Pozzoni
* Core/Misc: Fix issues reported by static analysis * Core/Vmaps: Code cleanup after e77716188861d4aa83b227a90e04a66b63baeb1f (cherry picked from commit cfc8f7b442a9dba07b198fcebe2c02ab89cf0a8b)
2022-01-24Core/Common: Merge TimeTrackerSmall with TimeTrackerCarbenium
(cherry picked from commit 228696bf80bcd55d35445cd24ae119020c310f88)
2022-01-23Core/Misc: Replace boost::optional with std::optional (#25047)Peter Keresztes Schmidt
C++17 is already mandatory, so it's a safe thing to do (cherry picked from commit 202fd41389973322f63186fd8e5a368fce3e1b04)
2022-01-19Core/Common: Replace ASSERT(false, "...") with ABORT_MSG("...")jackpoz
(cherry picked from commit 54c701cf0db81c0062e8c5020e07db18984d0ffa)
2022-01-04Vmap: Introduce skipping of antiportals and unreachable mogp (#26331)killerwife
* Vmap: Introduce skipping of antiportals and unreachable mogp * Reduce differences with master branch * Update VMAP and MMAP versions * Update MMAPs version Co-authored-by: jackpoz <giacomopoz@gmail.com> (cherry picked from commit d5f1fefe7f6772b11e9fbb052bfd36be9bda98e2)
2022-01-04MapExtraction: Fix water height redundancy algorithm ignoring "no water" ↵killerwife
(#26324) * MapExtraction: Fix water height redundancy algorithm ignoring "no water" * Update MMAP_VERSION * Change map version Co-authored-by: jackpoz <giacomopoz@gmail.com> (cherry picked from commit 00da074109e713280264761eedfbf6e5dc7ef912)
2022-01-04Core/Maps: Change .map file version from FourCC to uint32 (#26326)Giacomo Pozzoni
(cherry picked from commit 42877e75e2a67514dfeb185661e4f397b6eb044a)
2022-01-04Core/MMAPs: Restore single slope angle of 55°jackpoz
Re-generating MMAPs IS required. Partially reverts 995a443da219ec773febd7dd29d18f3cefaa1f3b . Having 2 different slope angles of 55° and 85° created too many polygons to fit in the current mmtile structure. This caused some polygons to become disconnected from each other, creating the old "invisible walls" effect. Because of this and because of the performance hit when loading a mmtile caused by the increase of polygon numbers, this commit reverts the recent changes and sets by default the slope angle to 55°. Feel free to restore the previous behaviour by running .\mmaps_generator --maxAngle 85 --maxAngleNotSteep 55 , specifying the map id as number if a single map should have different slope values. This is the last commit that will change MMAPs version to force re-generating them. Any future change that will affect only the generation settings will be optional (but recommended). (cherry picked from commit 3947e4cb57d4c6adb78cd3cb52718bb88add91fc)
2022-01-04Core/MMAPs: Fix small steps being considered as NAV_AREA_GROUND_STEEPjackpoz
(cherry picked from commit 3ac1992afbeb1cd7669b300b8ee4131d39f35595)
2022-01-04Handle different slopes in mmaps (#24765)Giacomo Pozzoni
* Tools/MMAPs: Remove input argument --maxAngle Remove input argument --maxAngle . This should be just hardcoded in MapBuilder::GetMapSpecificConfig() so all settings are easily found in the same place instead of being spread around. * Tools/MMAPs: Add new area type NAV_AREA_GROUND_STEEP Add new area type NAV_AREA_GROUND_STEEP for ground with slope in the range (55, 70] . NAV_AREA_GROUND is used for ground with range [0, 55] . NAV_AREA_GROUND_STEEP takes priority over NAV_AREA_GROUND. * Tools/MMAPs: Fix NAV_GROUND_STEEP flag not being saved in the mmtile * Core/PathFinding: Implement NAV_GROUND_STEEP flag Implement NAV_GROUND_STEEP flag, used only by Creatures that are in combat or evading. * Distinguish between RC_WALKABLE_AREA and NAV_AREA_GROUND. * Allow mobs in combat to walk on steeps up to 80° * Allow mobs in combat to walk on steeps up to 85°. Disable rcFilterLedgeSpans() filter as it removed long steep spans. * Increase cost of steep spans to try making creatures walk around obstacles instead of walking on them * Revert last commit (cherry picked from commit 995a443da219ec773febd7dd29d18f3cefaa1f3b)
2021-12-22Part1: Modernize codebase with Clang-Tidy range based loops (#24164)Ujp8LfXBJ6wCPR
(cherry picked from commit fb75a958f02695f166481033203869940d98b537)
2021-12-21Remove dependency on undefined behaviour (#24159)Ujp8LfXBJ6wCPR
See https://stackoverflow.com/a/4328396 Previous method works but is technically illegal. (cherry picked from commit b089ed3b7578029ec1d35537372a2b8b923c7ec6)
2021-11-22Dep/Recast: Update recastnavigation to ↵jackpoz
https://github.com/recastnavigation/recastnavigation/commit/14b2631527c4792e95b2c78ebfa8ac4cd3413363 Rebuilding mmaps IS required (cherry picked from commit 5ff88ea04aec4677f1c1d669674e5442288a25e3)
2021-09-25Core/Maps: Adjusted logic in GetFullTerrainStatusForPosition to closer match ↵Shauren
what the client does regarding being inside WMOs Closes #21625 Closes #21624 Closes #21516 (cherry picked from commit b9c6bbb51df0ed10f74617482740fedb91ff5366)
2021-05-29Fix buildShauren
2021-05-29Core/Maps & Extractors: Move copypasted map file headers into a single ↵Shauren
shared file and replace #defines with enums
2021-05-29Core/Misc: Rename MapDefines.h to MMapDefines.h as it contains mmap defines ↵Shauren
exclusively
2021-05-21Core/Vmaps: Fixed crash in unloading vmapsShauren
Closes #26536
2021-04-25Core/Vmaps: Extract more doodad setsShauren
2021-04-25Core/Vmaps: Reduce memory used by vmaps, part 2Shauren
2021-04-25Core/Vmaps: Reduce memory used by vmaps (and their size, slightly)Shauren
2021-04-15Core/Entities: Fix some weird movement due to los issues (#21125)Jeremy
* Core/Entities: Fix some weird movement due to los issues - Made LoS check use collisionHeight instead of midsection. Value was too low. - Gnomes will now have a breath bar more quickly than for example a tauren. - Changes have been made to checking for ground z as well, some tweeking might be needed but removed most of the scattered +2.0f/+0.5f/we * Add 0.05f to isInAir check in Creature::UpdateMovementFlags (cherry picked from commit e42903ec16f4849b71bc8736e3151a1e11d3cd25)
2021-02-15Dep/Recast: Update recastnavigation to ↵jackpoz
https://github.com/recastnavigation/recastnavigation/commit/2c85309280dbc9c82029e7ab16dfb01b9235c74e (cherry picked from commit 7ef22e43057080926685eb45f0fce3f2f3d58c61)
2020-12-08Core/Collision: Fixed false positive errors in console about vmap loadingShauren
2020-09-04Core/Misc: Port all the refactors sneaked in master to 3.3.5 include cleanup ↵Shauren
port
2020-08-23Core/Misc: Remove Whitespacessirikfoll
(cherry picked from commit e2565c2597a72ea7868eef3156014dc3a83c058f)
2020-08-19Core/Misc: Fix static analysis issuesjackpoz
(cherry picked from commit 9cf4dd7345b7f05db834fd48a9f0a135f1884d70)
2020-08-18Core/VMaps: Fix no collision trianglesGolrag
(cherry picked from commit 89d641f1e68d11359a2398ff51d3d6eee1470ae8)
2020-08-14Core/Misc: Replace NULL with nullptrShauren
2020-07-16[3.3.5] Get zone/area IDs from vmap data in the liquid update (#19840)Treeston
* Add new method Map::getFullVMapDataForPosition to get area info and liquid info in a single vmap lookup * Use this lookup in Map:: relocation methods to update m_areaId and m_zoneId fields on WorldObject * Adjust GetZoneId/GetAreaId on WorldObject to always return these cached fields * Clean up liquid state handling on Unit and Player * Hand floor's Z coord up through GetFullTerrainStatusForPosition, use it to update a new field in WorldObject, and use that to feed a new GetFloorZ call on WorldObject. Closes #16489 (cherry picked from commit f6c849729b27b77228704b595de3adaf24da2c10)
2020-06-28Core/Collision: Port new parts for retrieving area/liquid data from ↵Shauren
gameobjects added when porting 42f9deb21ec68e169f7ed1c8cf14092f144b22da to 3.3.5
2020-05-24Core/Maps: Improvements to terrain swap handlingShauren
* Fixed memory leak when unloading grids * Handle child maps being entered * Allow chaining more child maps (Draenor -> Tanaan Jungle -> Tanaan Jungle - No Hubs Phase)
2020-05-10Fix dynamic buildShauren
2020-05-10Tools/vmap assembler: Move TileAssembler from common to vmap4_assembler ↵Shauren
where it belongs
2020-04-28Core/Misc: Fix static analysis issuesjackpoz
(cherry picked from commit 486b03234304526d8f7d66ff0d99ea3de975745e)
2020-01-02New YearAokromes
2019-02-16Core/Misc: Fix static analysis issuesShauren
Fix static analysis issues reported by Coverity
2019-01-01Update copyright note for 2019vincent-michael
auto happy = new year(2019);
2018-12-09Core/Vmaps: Changed error message when loading outdated vmapsShauren
Closes #18431 Closes #18857 (cherry-picked from c90882ed6e2aba3b2d421abdc17cb57bea61d04b)
2018-12-09Core/Collision: fix no-PCH buildariel-
(cherry-picked from 65b6202bd81856ab836af7bc6acf96f12f9e81aa)
2018-12-09Core/Vmaps: Stop M2s from occluding for spellcast LoSHelloKitty
Closes #18528 (cherry-picked from 01d715eaef99e91f0959dc85fb7f69eb26d01a22)
2018-04-27Nopch/warning fixesShauren
2018-04-27Core/VMAPS: Fixed vmaps in single WMO instances like ragefire chasmShauren
* Fixed some models not always being spawned because they only appear in one tile file but are large enough to cross tile boundaries (lava in Firelands at Ragnaros place) Closes #21879
2018-04-22Warning fixShauren
2018-04-22Tools/mmaps_generator: Give land priority during area merges over liquidsShauren
Closes #21700
2018-04-08Core/GameObjects: Skip gameobjects with M2 models when searching for area ↵Shauren
info (perf optimization, they dont have any area info)
2018-04-07Add missing fcloseShauren
2018-04-07Tools:Shauren
* mapextractor - fixed fatigue in Thousand Needles * mapextractor - fixed compressing liquid data * vmapextractor - fixed extracting liquids inside WMOs * vmapextractor - implemented new WMO flags * vmapextractor - store model type for gameobject models * mmap_generator - fixed processing liquids broken in e5d23103f37c40d2e946fa0e2db66d2f527ad9af
2018-04-02Core/Misc: Removed obsolete NO_CORE_FUNCSShauren