18#ifndef BT_MULTIMATERIAL_TRIANGLE_INDEX_VERTEX_ARRAY_H
19#define BT_MULTIMATERIAL_TRIANGLE_INDEX_VERTEX_ARRAY_H
PHY_ScalarType
PHY_ScalarType enumerates possible scalar types.
const T & btMax(const T &a, const T &b)
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
#define ATTRIBUTE_ALIGNED16(a)
btAlignedObjectArray< btMaterialProperties > MaterialArray
The btAlignedObjectArray template class uses a subset of the stl::vector interface for its methods It...
int size() const
return the number of elements in the array
void push_back(const T &_Val)
The btTriangleIndexVertexArray allows to access multiple triangle meshes, by indexing into existing t...
Teh btTriangleIndexVertexMaterialArray is built on TriangleIndexVertexArray The addition of a materia...
BT_DECLARE_ALIGNED_ALLOCATOR()
virtual ~btTriangleIndexVertexMaterialArray()
btTriangleIndexVertexMaterialArray()
MaterialArray m_materials
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