Enable MPR by default
Add the contact point from MPR, in addition to SAT/clipping contacts. Added a new kernel to clear/reset the number of contacts in pairs (stored in the z component) Always sample unit sphere directions, if there are more edge-edge combinations than unit sphere directions (162 by default) Remember last running demo for Bullet 3 (and save it in a text file, Bullet Enable the testFileFracture.bullet in the Bullet2FileDemo
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
|
||||
#include "../bullet2/RagdollDemo/RagdollDemo.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
struct BulletDemoEntry
|
||||
{
|
||||
@@ -30,10 +29,10 @@ static BulletDemoEntry allDemos[]=
|
||||
|
||||
};
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
static const char* startFileName = "startDemo.txt";
|
||||
|
||||
static void saveCurrentDemoEntry(int currentEntry)
|
||||
static void saveCurrentDemoEntry(int currentEntry,const char* startFileName)
|
||||
{
|
||||
FILE* f = fopen(startFileName,"w");
|
||||
if (f)
|
||||
@@ -43,7 +42,7 @@ static void saveCurrentDemoEntry(int currentEntry)
|
||||
}
|
||||
};
|
||||
|
||||
static int loadCurrentDemoEntry()
|
||||
static int loadCurrentDemoEntry(const char* startFileName)
|
||||
{
|
||||
int currentEntry= 0;
|
||||
FILE* f = fopen(startFileName,"r");
|
||||
|
||||
Reference in New Issue
Block a user