- Fix CMap::GetChunkFacets: impassable test uses the chunk MapObjFlag (MAPOBJ_FLAG_IMPASSABLE at +0xC) like 12340, not MCNK header flag 0x40 (vertex colours). Most chunks got 32000-high wall facets, so the player could jump but not walk. - Ship paths: GetPosition, path time, accel/decel distance, roll/pitch. - Transports: Transport::UpdateMovement, CollideWithTransport, owner matrix. - Map objects: IsAllLoaded, footprints, TriData query chain (QueryTris, GetTrisTerrain/Chunk, GetTriSubchunk, QueryTrisMapObjDefs), QueryIntersectingModels. - Water ripples, projected-texture shadow drawing (shadow.cpp). - World states, LFG best random dungeon, quest POI, ComSat session lookup, blood record, virtual items, guild roster query. - Logout path: tradeskill close, LCD, DBCache_ClearPending, chat/macro/ saved-variable/account-data saving, tracked quests/achievements/ tutorials, UnloadAddOns, SaveAddOnEnableState, ~CGWorldFrame, SmartScreenRectShutdown. - Fixes: TriData batch heights stored as float* (was truncating uint32 on x64), TimeInRange is a ShipPath member, ComSat lookup takes the session type, roll/pitch names swapped in MapObjTransport::UpdateMovement, removed windows.h from Object/Passenger.h. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
28 lines
1.1 KiB
C++
28 lines
1.1 KiB
C++
#ifndef WOW_SOURCE_WORLDCLIENT_CWORLDMATH_H
|
|
#define WOW_SOURCE_WORLDCLIENT_CWORLDMATH_H
|
|
|
|
#include <cstdint>
|
|
|
|
class C2Vector;
|
|
class C33Matrix;
|
|
class C3Vector;
|
|
class C44Matrix;
|
|
class CAaBox;
|
|
|
|
class C4Plane;
|
|
|
|
class CWorldMath {
|
|
public:
|
|
static void TransformAABox(C44Matrix& m, CAaBox& src, CAaBox& dst);
|
|
static void MakeAaBox(CAaBox& box, const C3Vector& center, const float* size);
|
|
static void TransformAABoxInner(const float* row1, const float* row0, CAaBox& dst, CAaBox& src, const float* row2);
|
|
static void TransformAABox(C33Matrix& m, CAaBox& src, CAaBox& dst);
|
|
static bool VectorIntersectAABox2(CAaBox& box, C3Vector& start, C3Vector& end);
|
|
static int32_t ComputeAaBoxOutcode(CAaBox* box, C3Vector* point);
|
|
static float DistanceSquaredFromEdge(const C2Vector& a, const C2Vector& b, const C2Vector& point);
|
|
static int32_t PointInPolygon(int32_t count, const C2Vector* points, const C2Vector& point, float* distance);
|
|
static void ClipVertexListToPlane(const C3Vector* verts, uint32_t count, C3Vector* out, uint32_t& outCount, const C4Plane& plane, float epsilon, int32_t keepCoplanar);
|
|
};
|
|
|
|
#endif
|