I'm beginner with IRRLICHT.NET. I'm trying to tranlate my c++ project into C#. All its ok except :
Here the original code (written in C++). This code works :
Code: Select all
mesh = smgr->getMesh("model/grappin.x");
node2 = smgr->addAnimatedMeshSceneNode( mesh );
node2->setPosition(vector3df((float)0.2,(float)-0.1,(float)-1)); // setting new position of my node
Code: Select all
IAnimatedMesh grapin = smgr.GetMesh(@"model\grapin.x"); // it works
IAnimatedMeshSceneNode node2 = smgr.AddAnimatedMeshSceneNode(grapin, null, 0); // it works ^^
node2.Position.Set(new Vector3D(0.2f, -0.1f, -1.0f)); // here is the problem :(
Is it the right instruction?
Thanks to help me and sorry for my bad english ^^
Regards