1 %{ 2 #include <BulletCollision/CollisionShapes/btHeightfieldTerrainShape.h> 3 %} 4 5 %ignore btHeightfieldTerrainShape::btHeightfieldTerrainShape(int heightStickWidth,int heightStickLength, const void* heightfieldData, btScalar heightScale, btScalar minHeight, btScalar maxHeight, int upAxis, PHY_ScalarType heightDataType, bool flipQuadEdges); 6 %ignore btHeightfieldTerrainShape::btHeightfieldTerrainShape(int heightStickWidth,int heightStickLength,const void* heightfieldData, btScalar maxHeight,int upAxis,bool useFloatData,bool flipQuadEdges); 7 8 %extend btHeightfieldTerrainShape { btHeightfieldTerrainShape(int heightStickWidth,int heightStickLength,const float * heightfieldData,btScalar heightScale,btScalar minHeight,btScalar maxHeight,int upAxis,bool flipQuadEdges)9 btHeightfieldTerrainShape(int heightStickWidth, int heightStickLength, const float * heightfieldData, btScalar heightScale, btScalar minHeight, btScalar maxHeight, int upAxis, bool flipQuadEdges) 10 { 11 return new btHeightfieldTerrainShape(heightStickWidth, heightStickLength, (void *)heightfieldData, heightScale, minHeight, maxHeight, upAxis, PHY_FLOAT, flipQuadEdges); 12 } 13 btHeightfieldTerrainShape(int heightStickWidth,int heightStickLength,const short * heightfieldData,btScalar heightScale,btScalar minHeight,btScalar maxHeight,int upAxis,bool flipQuadEdges)14 btHeightfieldTerrainShape(int heightStickWidth, int heightStickLength, const short * heightfieldData, btScalar heightScale, btScalar minHeight, btScalar maxHeight, int upAxis, bool flipQuadEdges) 15 { 16 return new btHeightfieldTerrainShape(heightStickWidth, heightStickLength, (void *)heightfieldData, heightScale, minHeight, maxHeight, upAxis, PHY_SHORT, flipQuadEdges); 17 } 18 }; 19 20 %include "BulletCollision/CollisionShapes/btHeightfieldTerrainShape.h"