229 for (CreatureGroupMemberType::iterator itr =
m_members.begin(); itr !=
m_members.end(); ++itr)
235 if (itr->second->point_1)
237 itr->second->follow_angle =
float(
M_PI) * 2 - itr->second->follow_angle;
239 float angle = itr->second->follow_angle;
240 float dist = itr->second->follow_dist;
242 float dx =
x + std::cos(angle + pathangle) * dist;
243 float dy =
y + std::sin(angle + pathangle) * dist;
bool IsFlying() const
Definition: Unit.h:2189
uint32 GetUnitMovementFlags() const
Definition: Unit.h:2110
#define M_PI
Definition: Common.h:163
MotionMaster * GetMotionMaster()
Definition: Unit.h:2101
void SetHomePosition(float x, float y, float z, float o)
Definition: Creature.h:670
Definition: Creature.h:467
#define MAX_DESYNC
Definition: CreatureGroups.cpp:25
uint32 GetCurrentWaypointID() const
Definition: Creature.h:683
bool IsWithinDist(WorldObject const *obj, float dist2compare, bool is3D=true) const
Definition: Object.cpp:1658
void MovePoint(uint32 id, Position const &pos, bool generatePath=true)
Definition: MotionMaster.h:172
bool IsAlive() const
Definition: Unit.h:1692
Unit * GetVictim() const
Definition: Unit.h:1379
float GetPositionY() const
Definition: Position.h:105
G3D::int16 z
Definition: Vector3int16.h:46
void SetUnitMovementFlags(uint32 f)
Definition: Unit.h:2111
G3D::int16 y
Definition: Vector2int16.h:38
void NormalizeMapCoord(float &c)
Definition: GridDefines.h:210
Creature * m_leader
Definition: CreatureGroups.h:59
bool SetWalk(bool enable)
Definition: Unit.cpp:15800
G3D::int16 x
Definition: Vector2int16.h:37
float GetPositionX() const
Definition: Position.h:104
CreatureGroupMemberType m_members
Definition: CreatureGroups.h:61
void UpdateGroundPositionZ(float x, float y, float &z) const
Definition: Object.cpp:1827