My Code ::
Code: Select all
// create test cube
scene::ISceneNode* test = smgr->addCubeSceneNode(60);
// let the cube rotate and set some light settings
scene::ISceneNodeAnimator* anim = smgr->createRotationAnimator(
core::vector3df(0.3f, 0.3f,0));
test->setPosition(core::vector3df(0,0,500));
test->setMaterialFlag(video::EMF_LIGHTING, false); // disable dynamic lighting
test->addAnimator(anim);
anim->drop();
btVector3 testVect = physics.body->getCenterOfMassPosition();
test->setPosition(core::vector3df((f32)testVect[0], (f32)testVect[1], (f32)testVect[2]));
Code: Select all
vector3d(T nx, T ny, T nz) : X(nx), Y(ny), Z(nz) {}
Any help would be much appreciated.