Good afternoon. I imitate the sensor field of view (transparent triangle), which is ISceneNode given from SMesh. The field of view as a subsidiary node clinging to the sensor node, which conditionally scale (1, 1, 2). When I cling to the node of the field of view of the sensor I give it the scale to the scale of the sensor nodes (code), in this case saved the correct dimensions (when rotation of node of the field of view is (0, 0, 0)).
Code: Select all
_Node->setParent(ParentNode);
_Node->setScale(core::vector3df(1, 1, 1)/ParentNode->getScale());
But if I do the node of the field of view of the rotation, the scale of the field of view is changed. Figure red rectangle - sensor, right out the correct field of view, down - with the wrong scale. Prompt how to save the scale when attached to the node and setting the rotation subsidiary nodes. Thank you.