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:
@@ -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
|
||||
|
Reference in New Issue
Block a user