21 int numVertices,
btScalar* vertexBase,
int vertexStride,
22 int numMaterials,
unsigned char* materialBase,
int materialStride,
23 int* triangleMaterialsBase,
int materialIndexStride) :
btTriangleIndexVertexArray(numTriangles, triangleIndexBase, triangleIndexStride, numVertices, vertexBase, vertexStride)
30#ifdef BT_USE_DOUBLE_PRECISION
45 unsigned char** triangleMaterialBase,
int& numTriangles,
int& triangleMaterialStride,
PHY_ScalarType& triangleType,
int subpart)
53#ifdef BT_USE_DOUBLE_PRECISION
67 const unsigned char** triangleMaterialBase,
int& numTriangles,
int& triangleMaterialStride,
PHY_ScalarType& triangleType,
int subpart)
73#ifdef BT_USE_DOUBLE_PRECISION
PHY_ScalarType
PHY_ScalarType enumerates possible scalar types.
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
The btTriangleIndexVertexArray allows to access multiple triangle meshes, by indexing into existing t...
virtual int getNumSubParts() const
getNumSubParts returns the number of separate subparts each subpart has a continuous array of vertice...
virtual void getLockedReadOnlyMaterialBase(const unsigned char **materialBase, int &numMaterials, PHY_ScalarType &materialType, int &materialStride, const unsigned char **triangleMaterialBase, int &numTriangles, int &triangleMaterialStride, PHY_ScalarType &triangleType, int subpart=0)
btTriangleIndexVertexMaterialArray()
MaterialArray m_materials
virtual void getLockedMaterialBase(unsigned char **materialBase, int &numMaterials, PHY_ScalarType &materialType, int &materialStride, unsigned char **triangleMaterialBase, int &numTriangles, int &triangleMaterialStride, PHY_ScalarType &triangleType, int subpart=0)
void addMaterialProperties(const btMaterialProperties &mat, PHY_ScalarType triangleType=PHY_INTEGER)
This file was created by Alex Silverman.
int m_numTriangles
m_numTriangles <=========== This exists in the btIndexedMesh object for the same subpart,...
const unsigned char * m_triangleMaterialsBase
PHY_ScalarType m_materialType
const unsigned char * m_materialBase
int m_triangleMaterialStride
PHY_ScalarType m_triangleType
m_triangleType <========== Automatically set in addMaterialProperties
int m_numMaterials
m_materialBase ==========> 2 btScalar values make up one material, friction then restitution