modify all Z values on an ISceneNode

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
husqvarna
Posts: 39
Joined: Thu Mar 09, 2006 9:37 am

modify all Z values on an ISceneNode

Post 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
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post 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.
Image Image Image
husqvarna
Posts: 39
Joined: Thu Mar 09, 2006 9:37 am

Post by husqvarna »

Ok, but not the same amount for every. Every Different... sorry!

How to do that?
Post Reply