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.
37 lines
857 B
C++
37 lines
857 B
C++
7 years ago
|
#ifndef OPENMW_MWPHYSICS_HEIGHTFIELD_H
|
||
|
#define OPENMW_MWPHYSICS_HEIGHTFIELD_H
|
||
|
|
||
|
#include <osg/ref_ptr>
|
||
|
|
||
|
class btCollisionObject;
|
||
|
class btHeightfieldTerrainShape;
|
||
|
|
||
|
namespace osg
|
||
|
{
|
||
|
class Object;
|
||
|
}
|
||
|
|
||
|
namespace MWPhysics
|
||
|
{
|
||
|
class HeightField
|
||
|
{
|
||
|
public:
|
||
|
HeightField(const float* heights, int x, int y, float triSize, float sqrtVerts, float minH, float maxH, const osg::Object* holdObject);
|
||
|
~HeightField();
|
||
|
|
||
|
btCollisionObject* getCollisionObject();
|
||
|
const btCollisionObject* getCollisionObject() const;
|
||
|
const btHeightfieldTerrainShape* getShape() const;
|
||
|
|
||
|
private:
|
||
|
btHeightfieldTerrainShape* mShape;
|
||
|
btCollisionObject* mCollisionObject;
|
||
|
osg::ref_ptr<const osg::Object> mHoldObject;
|
||
|
|
||
|
void operator=(const HeightField&);
|
||
|
HeightField(const HeightField&);
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|