359 case ::Movement::MoveSplineFlag::Final_Point:
361 movementSpline.
FaceSpot = moveSpline.facing.f;
363 case ::Movement::MoveSplineFlag::Final_Target:
365 movementSpline.
FaceGUID = moveSpline.facing.target;
367 case ::Movement::MoveSplineFlag::Final_Angle:
382 movementSpline.
MoveTime = moveSpline.Duration();
386 movementSpline.
JumpGravity = moveSpline.vertical_acceleration;
387 movementSpline.
SpecialTime = moveSpline.effect_start_time;
391 std::vector<G3D::Vector3>
const& array = spline.getPoints();
397 uint32 count = spline.getPointCount() - 3;
398 for (
uint32 i = 0; i < count; ++i)
399 movementSpline.
Points.push_back(array[i + 2]);
403 uint32 count = spline.getPointCount() - 3;
404 movementSpline.
Points.push_back(array[1]);
405 for (
uint32 i = 0; i < count; ++i)
406 movementSpline.
Points.push_back(array[i + 1]);
411 uint32 lastIdx = spline.getPointCount() - 3;
414 movementSpline.
Points.push_back(realPath[lastIdx]);
418 G3D::Vector3 middle = (realPath[0] + realPath[lastIdx]) / 2.f;
421 for (
uint32 i = 1; i < lastIdx; ++i)
422 movementSpline.
PackedDeltas.push_back(middle - realPath[i]);
uint8 getAnimationId() const
Definition: MoveSplineFlag.h:88
uint32 SpecialTime
Definition: MovementPackets.h:80
uint8 AnimTier
Definition: MovementPackets.h:75
Definition: MovementTypedefs.h:39
bool cyclic
Definition: MoveSplineFlag.h:121
uint32 Flags
Definition: MovementPackets.h:73
G3D::Vector3 FaceSpot
Definition: MovementPackets.h:90
Definition: MoveSplineFlag.h:66
bool parabolic
Definition: MoveSplineFlag.h:135
bool animation
Definition: MoveSplineFlag.h:134
ObjectGuid FaceGUID
Definition: MovementPackets.h:89
MovementSpline Move
Definition: MovementPackets.h:98
Definition: MovementPackets.h:71
uint8 Face
Definition: MovementPackets.h:74
uint32 ID
Definition: MovementPackets.h:95
float JumpGravity
Definition: MovementPackets.h:79
float FaceDirection
Definition: MovementPackets.h:88
Definition: MoveSplineFlag.h:54
bool enter_cycle
Definition: MoveSplineFlag.h:122
Definition: MoveSplineFlag.h:70
uint32_t uint32
Definition: Define.h:150
uint32 TierTransStartTime
Definition: MovementPackets.h:76
std::vector< G3D::Vector3 > PackedDeltas
Definition: MovementPackets.h:86
Definition: MoveSplineFlag.h:28
MovementMonsterSpline SplineData
Definition: MovementPackets.h:116
uint32_t uint32
Definition: g3dmath.h:168
Definition: MovementTypedefs.h:37
std::vector< G3D::Vector3 > Points
Definition: MovementPackets.h:81
Definition: MovementTypedefs.h:38
uint32 MoveTime
Definition: MovementPackets.h:78
Definition: MovementTypedefs.h:40