dreamig
27-10-2013 21:48:20
HI,
i know that i create many topics , but i wanted to separate my problems ,in such way each problem will be in topic
So,
i have node in pos1=(-32,195,0);
i wanted to create
in such way i am sure that there is intersection between the both nodes
the simple case is to put the tube in the same position of the node no?
but when i make
it does not enter , that mean there is no intersection ?
but when i use this test fr box,or cube it work
i know that i create many topics , but i wanted to separate my problems ,in such way each problem will be in topic
So,
i have node in pos1=(-32,195,0);
i wanted to create
Procedural::TubeGenerator().setHeight(3.f).setUTile(3.).realizeMesh("tubeMesh");
target2= mSceneMgr->createEntity("tubeMesh");
Targetnode2 = mSceneMgr->getRootSceneNode()->createChildSceneNode("tubeMesh");
Targetnode2->attachObject(target2);
Targetnode2->setPosition(-32,195,0);
target2->setMaterial(material1);
Targetnode2->showBoundingBox(true);
in such way i am sure that there is intersection between the both nodes
the simple case is to put the tube in the same position of the node no?
but when i make
Ogre::AxisAlignedBox aabb= target2 ->getWorldBoundingBox();
bool iii= aabb.intersects(pos1);
if (iii)
{
////////////
}
it does not enter , that mean there is no intersection ?
but when i use this test fr box,or cube it work