Core/Movement: Implemented alternative method of smoothing waypoint paths (send new point 1.5 before arrival) and make that the default

Port From (https://github.com/TrinityCore/TrinityCore/commit/cf1ab7b4142f1d070d999c4141109a6c6c46d06d)
This commit is contained in:
Hondacrx
2024-08-18 18:22:59 -04:00
parent 38447522cc
commit da8b685c14
4 changed files with 151 additions and 91 deletions
+3 -2
View File
@@ -350,7 +350,7 @@ namespace Game
public void BuildSegments()
{
ContinuousSegments.Add(new WaypointSegment());
ContinuousSegments.Add(new WaypointSegment(0, 0));
for (int i = 0; i < Nodes.Count; ++i)
{
var g = ContinuousSegments[^1];
@@ -363,7 +363,7 @@ namespace Game
}
}
public struct WaypointSegment
public class WaypointSegment
{
public int First;
public int Last;
@@ -390,5 +390,6 @@ namespace Game
{
None = 0x00,
FollowPathBackwardsFromEndToStart = 0x01,
ExactSplinePath = 0x02
}
}