You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
|