Core/Movement: MoveCirclePath will now add the owner's original position to the path the EnterCycle spline flag will remove that vertex later on
This commit is contained in:
1 parent
a81a7da3bc
commit
bf03f41b15
1 file changed
+3
@@ -488,6 +488,9 @@ void MotionMaster::MoveCirclePath(float x, float y, float z, float radius, bool
|
||||
|
||||
Movement::MoveSplineInit init(_owner);
|
||||
|
||||
// add the owner's current position as starting point as it gets removed after entering the cycle
|
||||
init.Path().push_back(G3D::Vector3(_owner->GetPositionX(), _owner->GetPositionY(), _owner->GetPositionZ()));
|
||||
|
||||
for (uint8 i = 0; i < stepCount; angle += step, ++i)
|
||||
{
|
||||
G3D::Vector3 point;
|
||||
|
||||
Reference in new issue
Block a user