Hi:
I´m trying to scale one objet. My problem is when i´m doing that, somethimes
it rotate the objet. Anybody knows what's happening?
public Transform3D zoom(double dx, double dy, Transform3D xT3D)
{
    currXform = xT3D;
    Vector3f v = new Vector3f();
    currXform.get(v); // get Translation
    currXform.getScale(translation);
    currXform.setTranslation(new Vector3f(0.0f, 0.0f, 0.0f));
    currXform.setScale(new Vector3d(1.0, 1.0, 1.0));
    translation.x *= (1.0 + dx);
    translation.y *= (1.0 + dy);
    translation.z = 1.0;
    transformX.setScale(translation);
    currXform.mul(transformX, currXform);
    currXform.setTranslation(v); // return to original position
    return (currXform);
}

Un saludo, Martín


__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to