//m2 is the mouse click position
line.setLine(smgr->getSceneCollisionManager()->getRayFromScreenCoordinates(m2,smgr->getActiveCamera()));
//this is the model
node2->setPosition(line.getVector());
Hm, can you please be a bit more specific, e.g. show a bit more of your code. What type of line do you use? Maybe you can try using Irrlicht's line datatypes. Check if line.getVector() returns the vector you want to have.
on this screenshot you can, see a simple model man.3ds on a green ground wiese.3ds, now want use my mouse to move the model "man.3ds"
but i have problems to convert windows coordinates to world coordinates,
from my posts above you can see the code i have used, where is my mistake....
please can anybody point me in the right direction.
What you need is to find out where this point collides with the world, then move your model to that point. What you are trying to do is move your model along a line from the camera out into the scene to the far value. You've got the first bit of the collision right but have missed out a bit.