mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
*Implement spell Disengage and Death Grip.
--HG-- branch : trunk
This commit is contained in:
@@ -1246,6 +1246,13 @@ float WorldObject::GetDistance2d(float x, float y) const
|
||||
return ( dist > 0 ? dist : 0);
|
||||
}
|
||||
|
||||
float WorldObject::GetExactDistance2d(const float x, const float y) const
|
||||
{
|
||||
float dx = GetPositionX() - x;
|
||||
float dy = GetPositionY() - y;
|
||||
return sqrt((dx*dx) + (dy*dy));
|
||||
}
|
||||
|
||||
float WorldObject::GetDistance(const float x, const float y, const float z) const
|
||||
{
|
||||
float dx = GetPositionX() - x;
|
||||
|
||||
Reference in New Issue
Block a user