More stable parameters for solver (GpuDemo2d)

Added a possibility to switch between GPU/Bullet narrowphase ('j' key)
This commit is contained in:
rponom
2009-05-12 01:54:41 +00:00
parent 34685cb631
commit fcf7bda3b0
4 changed files with 34 additions and 8 deletions

View File

@@ -66,6 +66,7 @@ protected:
int m_numObj;
int m_numSimStep;
bool m_useCPUSolver;
bool m_useBulletNarrowphase;
float4* m_hPos;
float* m_hRot;
@@ -254,11 +255,13 @@ public:
void setWorldMax(const btVector3& worldMax) { m_worldMax = worldMax; }
void grabData();
void grabContactData();
void copyDataToGPU();
void setConstraintData(btCudaPartProps& partProps);
void copyDataFromGPU();
void writebackData();
void setUseCPUSolver(bool useCPU) { m_useCPUSolver = useCPU; }
void setUseBulletNarrowphase(bool useBulletNarrowphase) {m_useBulletNarrowphase = useBulletNarrowphase; }
void createBatches2();