Bullet bump up to version 2.88
add preliminary support to import btMultiBody from a .bullet file (will help save/restore state) fix some Windows char/widechar issues
This commit is contained in:
@@ -110,6 +110,8 @@ typedef struct bInvalidHandle {
|
||||
class btMultiBodyLinkFloatData;
|
||||
class btMultiBodyDoubleData;
|
||||
class btMultiBodyFloatData;
|
||||
class btMultiBodyLinkColliderFloatData;
|
||||
class btMultiBodyLinkColliderDoubleData;
|
||||
// -------------------------------------------------- //
|
||||
class PointerArray
|
||||
{
|
||||
@@ -1440,5 +1442,27 @@ typedef struct bInvalidHandle {
|
||||
};
|
||||
|
||||
|
||||
// -------------------------------------------------- //
|
||||
class btMultiBodyLinkColliderFloatData
|
||||
{
|
||||
public:
|
||||
btCollisionObjectFloatData m_colObjData;
|
||||
void *m_multiBody;
|
||||
int m_link;
|
||||
char m_padding[4];
|
||||
};
|
||||
|
||||
|
||||
// -------------------------------------------------- //
|
||||
class btMultiBodyLinkColliderDoubleData
|
||||
{
|
||||
public:
|
||||
btCollisionObjectDoubleData m_colObjData;
|
||||
void *m_multiBody;
|
||||
int m_link;
|
||||
char m_padding[4];
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
#endif//__BULLET_H__
|
||||
@@ -181,6 +181,11 @@ void btBulletFile::parseData()
|
||||
m_multiBodies.push_back((bStructHandle*)id);
|
||||
}
|
||||
|
||||
if (dataChunk.code == BT_MB_LINKCOLLIDER_CODE)
|
||||
{
|
||||
m_multiBodyLinkColliders.push_back((bStructHandle*)id);
|
||||
}
|
||||
|
||||
if (dataChunk.code == BT_SOFTBODY_CODE)
|
||||
{
|
||||
m_softBodies.push_back((bStructHandle*) id);
|
||||
|
||||
@@ -41,6 +41,8 @@ namespace bParse {
|
||||
|
||||
btAlignedObjectArray<bStructHandle*> m_multiBodies;
|
||||
|
||||
btAlignedObjectArray<bStructHandle*> m_multiBodyLinkColliders;
|
||||
|
||||
btAlignedObjectArray<bStructHandle*> m_softBodies;
|
||||
|
||||
btAlignedObjectArray<bStructHandle*> m_rigidBodies;
|
||||
|
||||
Reference in New Issue
Block a user