mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-03 17:37:18 +00:00
f4f9fa4701
AABB change outside recast mesh tile should not affect navmesh for this tile.
32 lines
1000 B
C++
32 lines
1000 B
C++
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_OSCILLATINGRECASTMESHOBJECT_H
|
|
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_OSCILLATINGRECASTMESHOBJECT_H
|
|
|
|
#include "areatype.hpp"
|
|
#include "recastmeshobject.hpp"
|
|
#include "tilebounds.hpp"
|
|
|
|
#include <LinearMath/btTransform.h>
|
|
#include <BulletCollision/Gimpact/btBoxCollision.h>
|
|
|
|
namespace DetourNavigator
|
|
{
|
|
class OscillatingRecastMeshObject
|
|
{
|
|
public:
|
|
explicit OscillatingRecastMeshObject(RecastMeshObject&& impl, std::size_t lastChangeRevision);
|
|
explicit OscillatingRecastMeshObject(const RecastMeshObject& impl, std::size_t lastChangeRevision);
|
|
|
|
bool update(const btTransform& transform, const AreaType areaType, std::size_t lastChangeRevision,
|
|
const TileBounds& bounds);
|
|
|
|
const RecastMeshObject& getImpl() const { return mImpl; }
|
|
|
|
private:
|
|
RecastMeshObject mImpl;
|
|
std::size_t mLastChangeRevision;
|
|
btAABB mAabb;
|
|
};
|
|
}
|
|
|
|
#endif
|