How can i clone a scene node ?
thx
How to clone a scene node
there is no function for cloning nodes, but you can create as many nodes as you want from a mesh...
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
oh, really ???
then it's a new function since v1.3, isn't it ???
then it's a new function since v1.3, isn't it ???
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
well, then my first reply take affect, there is no clone function !!!
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Update to the latest irrlicht, it's not hard!
Or you can just create your node in a function called createNode(...) which returns the node, then you can do this:
ISceneNode node1 = createNode(...);
ISceneNode node2 = createNode(...);
.
.
.
And so on, in the createNode function you just make your node how you want it to be and that will effectively clone it.
Or you can just create your node in a function called createNode(...) which returns the node, then you can do this:
ISceneNode node1 = createNode(...);
ISceneNode node2 = createNode(...);
.
.
.
And so on, in the createNode function you just make your node how you want it to be and that will effectively clone it.
why did the clone() function got added to the interface if no working implementation exists?
http://irrlicht.sourceforge.net/docu/_i ... tml#l00613
[edit]
ahhh im sorry of course there exist many of them, but none for IAnimatedMeshSceneNode...
why so?
http://irrlicht.sourceforge.net/docu/_i ... tml#l00613
[edit]
ahhh im sorry of course there exist many of them, but none for IAnimatedMeshSceneNode...
why so?
worst programming style ever seen...
Im confused, is it working or not? I cannot seem to get it to work at all.
Last edited by dgrafix on Wed May 07, 2008 11:48 am, edited 1 time in total.
C++/Irrlicht Noob pl3se B p4t1ent.
Visit www.d-grafix.com
Visit www.d-grafix.com
It is working, or so I remember, to place it on top, get the nodes position you want to put it on top and
[/code]
Code: Select all
newnode->setPosition(node->getPosition() - vector3df(0, 10, 0));