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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user