2021-04-18 14:51:52 +00:00
|
|
|
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_OSCILLATINGRECASTMESHOBJECT_H
|
|
|
|
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_OSCILLATINGRECASTMESHOBJECT_H
|
|
|
|
|
|
|
|
#include "areatype.hpp"
|
|
|
|
#include "recastmeshobject.hpp"
|
2021-05-26 23:59:07 +00:00
|
|
|
#include "tilebounds.hpp"
|
2021-04-18 14:51:52 +00:00
|
|
|
|
|
|
|
#include <LinearMath/btTransform.h>
|
|
|
|
#include <BulletCollision/Gimpact/btBoxCollision.h>
|
|
|
|
|
|
|
|
namespace DetourNavigator
|
|
|
|
{
|
|
|
|
class OscillatingRecastMeshObject
|
|
|
|
{
|
|
|
|
public:
|
2021-04-28 07:38:27 +00:00
|
|
|
explicit OscillatingRecastMeshObject(RecastMeshObject&& impl, std::size_t lastChangeRevision);
|
|
|
|
explicit OscillatingRecastMeshObject(const RecastMeshObject& impl, std::size_t lastChangeRevision);
|
2021-04-18 14:51:52 +00:00
|
|
|
|
2021-05-26 23:59:07 +00:00
|
|
|
bool update(const btTransform& transform, const AreaType areaType, std::size_t lastChangeRevision,
|
|
|
|
const TileBounds& bounds);
|
2021-04-18 14:51:52 +00:00
|
|
|
|
|
|
|
const RecastMeshObject& getImpl() const { return mImpl; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
RecastMeshObject mImpl;
|
|
|
|
std::size_t mLastChangeRevision;
|
|
|
|
btAABB mAabb;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|