add initial support for soft body / cloth serialization, and updated SerializeDemo to load soft bodies/cloth.
Serializes soft body nodes (vertices), links, faces, tetrahedra, materials, anchors with rigid bodies. Some todo's are serialization of pose, constraints between soft bodies
This commit is contained in:
@@ -53,6 +53,7 @@ static float waveheight = 5.f;
|
||||
|
||||
const float TRIANGLE_SIZE=8.f;
|
||||
|
||||
#define DEMO_MODE_TIMEOUT 500.f
|
||||
|
||||
|
||||
#ifdef _DEBUG
|
||||
@@ -1388,12 +1389,12 @@ void SoftDemo::clientMoveAndDisplay()
|
||||
|
||||
if (sDemoMode)
|
||||
{
|
||||
static int demoCounter = 500;
|
||||
demoCounter--;
|
||||
static float demoCounter = DEMO_MODE_TIMEOUT;
|
||||
demoCounter-= dt;
|
||||
if (demoCounter<0)
|
||||
{
|
||||
|
||||
demoCounter=500;
|
||||
demoCounter=DEMO_MODE_TIMEOUT;
|
||||
current_demo++;
|
||||
current_demo=current_demo%(sizeof(demofncs)/sizeof(demofncs[0]));
|
||||
clientResetScene();
|
||||
|
||||
Reference in New Issue
Block a user