tweak OpenCL particle demo
This commit is contained in:
@@ -42,10 +42,11 @@ subject to the following restrictions:
|
||||
#include "btParticlesSharedDefs.h"
|
||||
#include "btParticlesSharedTypes.h"
|
||||
|
||||
#define PARTICLES_MAX_PARTICLES (65536)
|
||||
|
||||
#define PARTICLES_MAX_NEIGHBORS (32)
|
||||
#define DEF_PARTICLE_RADIUS (0.023f)
|
||||
#define WORLD_SIZE 1.9f
|
||||
//#define WORLD_SIZE 1.9f
|
||||
#define WORLD_SIZE 1.f
|
||||
|
||||
enum
|
||||
{
|
||||
@@ -137,7 +138,7 @@ public:
|
||||
|
||||
|
||||
btParticlesDynamicsWorld(btDispatcher* dispatcher,btBroadphaseInterface* pairCache,btConstraintSolver* constraintSolver,btCollisionConfiguration* collisionConfiguration,
|
||||
int maxObjs = PARTICLES_MAX_PARTICLES, int maxNeighbors = PARTICLES_MAX_NEIGHBORS)
|
||||
int maxObjs , int maxNeighbors = PARTICLES_MAX_NEIGHBORS)
|
||||
: btDiscreteDynamicsWorld(dispatcher, pairCache, constraintSolver, collisionConfiguration)
|
||||
{
|
||||
m_cxMainContext = 0;
|
||||
|
||||
Reference in New Issue
Block a user