Core/Movement: merged Collision height handling from 335 branch to reduce the probability that creatures are falling under the map
This commit is contained in:
1 parent
3357ae7940
commit
50a91bd590
16 files changed
+134
-138
No files matched your search
@@ -59,6 +59,8 @@ struct QuaternionData;
|
||||
|
||||
typedef std::unordered_map<Player*, UpdateData> UpdateDataMapType;
|
||||
|
||||
float const DEFAULT_COLLISION_HEIGHT = 2.03128f; // Most common value in dbc
|
||||
|
||||
class TC_GAME_API Object
|
||||
{
|
||||
public:
|
||||
@@ -471,6 +473,10 @@ class TC_GAME_API WorldObject : public Object, public WorldLocation
|
||||
virtual float GetStationaryO() const { return GetOrientation(); }
|
||||
|
||||
float GetFloorZ() const;
|
||||
virtual float GetCollisionHeight() const { return 0.0f; }
|
||||
|
||||
float GetMapWaterOrGroundLevel(float x, float y, float z, float* ground = nullptr) const;
|
||||
float GetMapHeight(float x, float y, float z, bool vmap = true, float distanceToSearch = 50.0f) const; // DEFAULT_HEIGHT_SEARCH in map.h
|
||||
|
||||
uint16 GetAIAnimKitId() const { return m_aiAnimKitId; }
|
||||
void SetAIAnimKitId(uint16 animKitId);
|
||||
|
||||
Reference in new issue
Block a user