I have the impression that "editable" ManualObject do not take into account parents transformations.
My code is looking like that:
Once done, I make the _origin of this structure the child of another structure._origin (the parent) and rotate the parent => no effect on ManualObject.
Code: Select all
_origin = _sceneMgr->getRootSceneNode()->createChildSceneNode(); _object = _origin->createChildSceneNode(); _vertices = new Vector3[ vertices_num ]; _mo = sm->createManualObject(SCENE_DYNAMIC); _mo->begin("BaseWhiteNoLighting", RenderOperation::OT_LINE_STRIP); _mo->estimateVertexCount(vertices_num); _mo->estimateIndexCount(vertices_num); // pushing vertices and indices _mo->end(); _object->attachObject(_mo);
I'd like to keep the opportunity to modify the vertices of the manual object, and also to be able to parent it.
Did I miss something?
Thanks in advance.
PLine class code: https://bitbucket.org/polymorphteam/pe. ... 8f27982ac9