minor update to be compatible with Bullet 2.74 physics:

btPoint3 has been deprecated, it was already a typedef to btVector3
replace std::vector by btAlignedObjectArray when storing Bullet objects, because MSVC STL implementation has some bugs, preventing to contain aligned objects
(btVector3 is 16-byte aligned, to allow SIMD)
This commit is contained in:
Erwin Coumans
2009-03-02 17:43:35 +00:00
parent cc2e3980f8
commit f8ef887880
3 changed files with 16 additions and 15 deletions

View File

@@ -161,7 +161,7 @@ public:
btTransform m_childTrans;
btVector3 m_childScale;
void* m_userData;
std::vector<btPoint3> m_vertexArray; // Contains both vertex array for polytope shape and
btAlignedObjectArray<btVector3> m_vertexArray; // Contains both vertex array for polytope shape and
// triangle array for concave mesh shape.
// In this case a triangle is made of 3 consecutive points
std::vector<int> m_polygonIndexArray; // Contains the array of polygon index in the