mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 01:56:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			1,000 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			1,000 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
 |