added basic serialization for several constraints including btPoint2PointConstraint, btHingeConstraint, btSliderConstraint, btConeTwistConstraint, btGeneric6DofConstraint
(no motor support or advanced settings yet) added btStaticPlaneShape serialization Added toggle in cmake for BenchmarksDemo to enable/disable graphics rendering
This commit is contained in:
@@ -423,6 +423,7 @@ void bFile::parseStruct(char *strcPtr, char *dtPtr, int old_dna, int new_dna, bo
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ----------------------------------------------------- //
|
||||
static void getElement(int arrayLen, const char *cur, const char *old, char *oldPtr, char *curData)
|
||||
{
|
||||
@@ -436,7 +437,7 @@ static void getElement(int arrayLen, const char *cur, const char *old, char *old
|
||||
#define setEle(value, current, type, cast, size, ptr)\
|
||||
if (strcmp(current, type)==0)\
|
||||
{\
|
||||
(*(cast*)ptr) = value;\
|
||||
(*(cast*)ptr) = (cast)value;\
|
||||
ptr += size;\
|
||||
}
|
||||
double value = 0.0;
|
||||
|
||||
Reference in New Issue
Block a user