Hi, Its posible to edit the mesh of a custom node?
I want to do a plane and the make it act like a paper. a 3d model doesnt work because It need to be adaptable for diferent sizes and resolutions.
editing a mesh
-
- Posts: 131
- Joined: Fri Jun 03, 2005 7:26 pm
yes you use smgr->getmeshmanipulator look in the doc folder of the irrlicht folder and seach it in the help
and you can also use
yourmeshnamehere->setmaterialflag->setposition(0.0f,0.0f,0.0f);
and Setmaterialflag->setScale(0.0f,0.0f,0.0f);
you should assign it to a user event like when they press a key it changes size for that you need to use a event reciever look in the tutorials not the first couple but after that the event reciever code in them you can just copy it. hope it helps
and you can also use
yourmeshnamehere->setmaterialflag->setposition(0.0f,0.0f,0.0f);
and Setmaterialflag->setScale(0.0f,0.0f,0.0f);
you should assign it to a user event like when they press a key it changes size for that you need to use a event reciever look in the tutorials not the first couple but after that the event reciever code in them you can just copy it. hope it helps
"Held in Your arms but too far from my heart." "These thoughts will carry me through the darkest nights...while your eyes rest in mine."
"How quickly I forget that this is meaningless."
"How quickly I forget that this is meaningless."