Commit Graph

36 Commits

Author SHA1 Message Date
ikpil bc7818a1c5 [Upstream] fix: Fix raycast shortcuts (@Sarofc)
Raycast is performed in 2d and it might report reaching the given position even if the Y coordinate is different than the target. Therefore, it is necessary to check what poly is actually hit by raycast before taking a shortcut.

- https://github.com/recast4j/recast4j/issues/196
- https://github.com/recast4j/recast4j/pull/197
- https://github.com/ikpil/DotRecast/issues/72
2024-07-18 20:06:36 +09:00
ikpil c562f8f6a1 Changed new RcVec3f[3] to stackalloc RcVec3f[3] in DtNavMesh.GetPolyHeight() to reduce heap allocation. 2024-07-14 00:09:08 +09:00
ikpil e5d5867c56 rename RcVecUtils to RcVec 2024-06-25 00:02:59 +09:00
ikpil 99224251dc Changed `List<DtStraightPath>` to `Span<DtStraightPath>` for enhanced memory efficiency 2024-05-23 21:19:16 +09:00
ikpil e926c23195 SOH #41 2024-05-09 00:34:22 +09:00
ikpil 59849e1dac add `int nvisited` in DtPathUtils.functions 2024-05-09 00:00:53 +09:00
ikpil cfdcc1336c preparatory work to resolve the SOH issue during path merging. 2024-05-08 00:25:32 +09:00
ikpil fc673b2c25 test2 2024-05-06 15:45:24 +09:00
ikpil 741200b559 added int npath param in FixupShortcuts() 2024-05-06 14:37:43 +09:00
ikpil 3c4723c907 added npath in MergeCorridor functions 2024-02-23 01:02:23 +09:00
ikpil d0bec3714e added corridor maxpath for SOH issue
- https://github.com/ikpil/DotRecast/issues/41
2024-02-16 00:26:23 +09:00
ikpil dbb03988f5 fix: DtRaycastHit SOH issue reslove 2024-02-01 13:59:22 +09:00
ikpil aaff85b229 fix: Change DtRaycastHit class to struct to resolve SOH issue. step2 2024-02-01 13:59:22 +09:00
c0nd3v b1db6df033 Fix typo 2023-12-23 11:14:00 +09:00
ikpil 9a62fbf9f4 refactor: RcVec3f.Mad, IsFinite, Lerp 2023-10-26 00:05:00 +09:00
ikpil 04fa38bb96 refactor: RcVecUtils.SafeNormalize 2023-10-24 23:46:45 +09:00
ikpil 5c2dd6b757 refactor: cleaning up the API to .net 8 Sytem.Numerics compatibility. 2023-10-18 00:08:28 +09:00
ikpil cfcdf86f2d feat: change namespace RcVec2f, RcVec3f, RcMatrix4x4f for dotent 8 2023-10-16 23:55:34 +09:00
ikpil 228bdc9e4d refactor: remove RcVec3f.Of(x,y,z) 2023-10-12 23:52:32 +09:00
ikpil 7965af390e refactor: Change 'xyz' to uppercase in preparation for switching to System.Numeric.Vector3 2023-10-12 23:04:29 +09:00
ikpil 31734246b6 refactor: DtFindPathOptions, DtRaycastOptions 2023-10-08 14:28:56 +09:00
ikpil 533afe49e2 refactor: flags 2023-10-08 14:23:58 +09:00
ikpil 34f38fc874 refactoring: typo 2023-10-05 23:35:18 +09:00
ikpil e02e097577 refactoring: prefix Dt 2023-10-05 00:11:58 +09:00
ikpil ab05f845ca refactor PATHFIND_SLICED 2023-09-10 14:37:02 +09:00
ikpil 013a53fbc9 refactor: FIND_LOCAL_NEIGHBOURHOOD 2023-09-10 14:30:46 +09:00
ikpil 8ca7142bc5 refactor: DISTANCE_TO_WALL 2023-09-10 14:16:27 +09:00
ikpil ac0ee0f734 refactor: PATHFIND_STRAIGHT 2023-09-10 14:02:40 +09:00
ikpil ace37833e5 refactor: PATHFIND_FOLLOW 2023-09-10 13:53:31 +09:00
ikpil 539a028f58 refactor: RAYCAST 2023-09-10 13:47:18 +09:00
ikpil 5fd07d1e07 refactor: RANDOM_POINTS_IN_CIRCLE 2023-09-10 13:30:02 +09:00
ikpil a0a3a24e75 refactor: FIND_POLYS_IN_CIRCLE, FIND_POLYS_IN_SHAPE 2023-09-10 13:22:21 +09:00
ikpil 54e8835cb7 feat: add random point count 2023-09-10 12:45:49 +09:00
ikpil 6b11e459b8 for unity3d 2023-08-22 00:14:11 +09:00
ikpil c07a2c9b80 typo 2023-08-21 23:56:17 +09:00
ikpil e98ff8bec7 rename for unity3d 2023-08-20 13:45:44 +09:00