[C++, DX9] Kinematic Character Controller doesn't collide

SteveSegreto
Posts: 32
Joined: Sun Sep 12, 2010 10:25 am

Re: [C++, DX9] Kinematic Character Controller doesn't collid

Post by SteveSegreto »

Under Bullet demo TerrainDemo.cpp

Code: Select all

static const int s_gridSize			= 64 + 1;  // must be (2^N) + 1
and examination of btHeightfieldTerrainShape::initialize() in the library gives:

Code: Select all

	m_width = (btScalar) (heightStickWidth - 1);
	m_length = (btScalar) (heightStickLength - 1);
Note that the terrain demo did not create a msvs project for me when i installed 2.76, so i made it manually.