Page 1 of 1

modify all Z values on an ISceneNode

Posted: Fri May 26, 2006 9:03 am
by husqvarna
Hello,

I have an ISceneNode and I want to modify all the Z values of the points of this ISceneNode (after the load of the mesh).

How to do that?

Thanks

Posted: Fri May 26, 2006 10:29 am
by JP
Are you wanting to modify all the points by the same amount? If so then you can just move the node by the desired amount along the z axis using node->setPosition(vector3df). You can calculate the new required position using it's current position: node->getPosition() and add the required value to the z component of the vector3df you get from that, and then use that in setPosition.

Posted: Fri May 26, 2006 10:34 am
by husqvarna
Ok, but not the same amount for every. Every Different... sorry!

How to do that?