Moving primitives (translation)
Posted: Thu Feb 07, 2013 3:22 pm
What is best way to translate eg. plane?
i tried:
const ccGLMatrix& planteTrans = pPlane->getTransformation();
CCVector3 N(planteTrans.getColumn(2)); //plane normal
N.normalize();
N = N * 0.1;
pPlane->translateGL(N);
m_app->refreshAll();
m_app->updateUI();
m_app->redrawAll();
It moves, after saving project and loading - its position is moved.
But in properties table - bounding box center and dimmensions are not changing, am i doing something wrong?
i tried:
const ccGLMatrix& planteTrans = pPlane->getTransformation();
CCVector3 N(planteTrans.getColumn(2)); //plane normal
N.normalize();
N = N * 0.1;
pPlane->translateGL(N);
m_app->refreshAll();
m_app->updateUI();
m_app->redrawAll();
It moves, after saving project and loading - its position is moved.
But in properties table - bounding box center and dimmensions are not changing, am i doing something wrong?