replace
Code: Select all
device = createDevice(EDT_OPENGL, dimension2d<s32>(1024, 768), 16, false, true, this);
Code: Select all
device = createDevice(EDT_OPENGL, dimension2d<s32>(1024, 768), 16, false, true, false, this);Code: Select all
boxP0[1] -= 100;
boxP1[1] += 40;Code: Select all
NewtonCollisionCalculateAABB (g_newtonmap, &matrix[0][0], &boxP0[0], &boxP1[0]);
// you can pad the box here if you wish
//boxP0.y -= somevalue;
//boxP1.y += somevaluef; Code: Select all
NewtonBodySetFreezeTreshold(tmp->body, 1.0, 1.0, 1.0, 1.0); Code: Select all
NewtonBodySetFreezeTreshold(tmp->body, 1.0, 1.0, 1); Code: Select all
tmp->node->setMaterialFlag(video::EMF_LIGHTING, false);Code: Select all
tmp->mesh = smgr->getMesh("data/smallcube.3ds");
tmp->node = smgr->addAnimatedMeshSceneNode(tmp->mesh);
tmp->node->setMaterialTexture(0, driver->getTexture("data/crate.jpg"));