If creature is on transport, we assume waypoints set in DB are already transport offsets
Do not use formationDest here, MoveTo requires transport offsets due to DisableTransportPathTransformations() call but formationDest contains global coordinates
Accepts angles such as 0.00001 and -0.00001, 0 must be ignored, default value in waypoint table
121 o -= trans->GetOrientation();
123 trans->CalculatePassengerPosition(x, y, z, &o);
127 transportPath =
false;
150 init.DisableTransportPathTransformations();
152 trans->CalculatePassengerPosition(formationDest.x, formationDest.y, formationDest.z, &formationDest.orientation);
157 init.MoveTo(node->
x, node->
y, node->
z);
bool m_isArrivalDone
Definition: WaypointMovementGenerator.h:97
Definition: WaypointManager.h:29
float x
Definition: WaypointManager.h:37
void SetTransportHomePosition(float x, float y, float z, float o)
Definition: Creature.h:675
float z
Definition: WaypointManager.h:37
void AddUnitState(uint32 f)
Definition: Unit.h:1394
Definition: MoveSpline.h:36
MotionMaster * GetMotionMaster()
Definition: Unit.h:2101
arena_t NULL
Definition: jemalloc_internal.h:624
void SetHomePosition(float x, float y, float z, float o)
Definition: Creature.h:670
Definition: Transport.h:28
Creature * getLeader() const
Definition: CreatureGroups.h:71
float orientation
Definition: WaypointManager.h:37
Definition: MoveSplineInit.h:33
WaypointPath const * i_path
Definition: WaypointMovementGenerator.h:46
Definition: VehicleDefines.h:119
bool repeating
Definition: WaypointMovementGenerator.h:99
float y
Definition: WaypointManager.h:37
Definition: WaypointManager.h:28
Definition: MoveSplineInit.h:31
float GetOrientation() const
Definition: Position.h:107
G3D::int16 z
Definition: Vector3int16.h:46
TransportBase * GetDirectTransport() const
Returns the transport this unit is on directly (if on vehicle and transport, return vehicle) ...
Definition: Unit.cpp:14365
G3D::int16 y
Definition: Vector2int16.h:38
uint32 i_currentNode
Definition: WaypointMovementGenerator.h:47
CreatureGroup * GetFormation()
Definition: Creature.h:687
bool Stopped()
Definition: WaypointMovementGenerator.h:79
Definition: WaypointManager.h:26
Transport * GetTransport() const
Definition: Object.h:602
uint32 move_type
Definition: WaypointManager.h:40
bool SetWalk(bool enable)
Definition: Unit.cpp:15800
uint32 delay
Definition: WaypointManager.h:38
Definition: WaypointManager.h:27
G3D::int16 x
Definition: Vector2int16.h:37
Definition: MoveSplineInit.h:52
void Initialize()
Definition: MotionMaster.cpp:39
void LeaderMoveTo(float x, float y, float z)
Definition: CreatureGroups.cpp:220
Definition: WaypointManager.h:34