I create cube, convert him to .obj format.
Load mesh and try rotate:
Code: Select all
core::vector3df b = node->getRotation();
b.Y += 90.0f;
node->setRotation(b);
But I need rotate cube around center. How do it?
P.S. At editor I change Pivot to center and one of vertex. Rusult equal.