Core/Movement: Ensured object orientation is always within 0-2pi range, this fixes movement.
This commit is contained in:
1 parent
5e1e9bb4dd
commit
9538fb6d5a
11 files changed
+40
-27
No files matched your search
@@ -81,7 +81,7 @@ namespace Movement
|
||||
if (args.path.empty())
|
||||
return;
|
||||
|
||||
// corrent first vertex
|
||||
// correct first vertex
|
||||
args.path[0] = real_position;
|
||||
args.initialOrientation = real_position.orientation;
|
||||
|
||||
@@ -114,7 +114,7 @@ namespace Movement
|
||||
}
|
||||
|
||||
PacketBuilder::WriteMonsterMove(move_spline, data);
|
||||
unit.SendMessageToSet(&data,true);
|
||||
unit.SendMessageToSet(&data, true);
|
||||
}
|
||||
|
||||
MoveSplineInit::MoveSplineInit(Unit& m) : unit(m)
|
||||
@@ -124,6 +124,7 @@ namespace Movement
|
||||
// mix existing state into new
|
||||
args.flags.walkmode = unit.m_movementInfo.HasMovementFlag(MOVEMENTFLAG_WALKING);
|
||||
args.flags.flying = unit.m_movementInfo.HasMovementFlag(MovementFlags(MOVEMENTFLAG_CAN_FLY | MOVEMENTFLAG_DISABLE_GRAVITY));
|
||||
args.flags.smoothGroundPath = true; // enabled by default, CatmullRom mode or client config "pathSmoothing" will disable this
|
||||
}
|
||||
|
||||
void MoveSplineInit::SetFacing(const Unit * target)
|
||||
|
||||
Reference in new issue
Block a user