Odd movement after scaling a node

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
dgrafix
Posts: 116
Joined: Sun Nov 18, 2007 2:36 pm

Odd movement after scaling a node

Post by dgrafix »

node->setScale(D_VECT3Df(sx,sy,sz));

After using the above, my function below moves the node faster than it should. I would like to scale the node but leave its coordinate matrix the same.

Code: Select all

        
        D_VECT3Df dest = D_VECT3Df(x,y,z);
        D_MATRIX4 mat =  node->getRelativeTransformation();
        mat.transformVect(dest);
        node->setPosition(dest);
Is this possible?
C++/Irrlicht Noob pl3se B p4t1ent.
Visit www.d-grafix.com :)
Italia
Posts: 10
Joined: Sun May 04, 2008 11:12 am

Post by Italia »

I think yes but i don't know if is well
Post Reply