add support for double precision and 64bit serialization (and compatibility between all versions)

fix some issue in serialization of nested array data
add some tesing files
This commit is contained in:
erwin.coumans
2010-01-25 19:42:51 +00:00
parent 5d8e6dc3f3
commit e7ff71d99b
48 changed files with 1207 additions and 294 deletions

View File

@@ -20,6 +20,7 @@ subject to the following restrictions:
#include "btStridingMeshInterface.h"
///The btTriangleMeshShape is an internal concave triangle mesh interface. Don't use this class directly, use btBvhTriangleMeshShape instead.
class btTriangleMeshShape : public btConcaveShape
{
@@ -90,14 +91,16 @@ public:
struct btTriangleMeshShapeData
{
//btConcaveShapeData m_concaveShapeData;
btCollisionShapeData m_collisionShapeData;
btStridingMeshInterfaceData m_meshInterface;
btScalar m_collisionMargin;
float m_collisionMargin;
char m_padding[4];
};
SIMD_FORCE_INLINE int btTriangleMeshShape::calculateSerializeBufferSize()
{
return sizeof(btTriangleMeshShapeData);