Parent-Child transformation

Hi All,



Sorry for my English.



I searched this foroum but didn't find any answer to my question so I'm postting it.

I'm new to JME and I follow the tutorial and I have some experience  in Java3D.

Say I have Node a and Node b.

first I write b.setLocalTranslation(new Vector3f(0,2,0));

then a.n.attachChild(b);

now I write a.n.setLocalScale(5);



My question is : does b go up 2 units or 10 untins in the y direction?

Thank u in advance

Eyal

I'm almost positive that the center of the object stays at the location you put.

Thank u for your answer

I'm pretty sure it stays at the location where I put it but in its local codinate system.

So I guees in the global coordinates system the object change poistion according to the chain of transformations.

Java4ever said:

Thank u for your answer
I'm pretty sure it stays at the location where I put it but in its local codinate system.
So I guees in the global coordinates system the object change poistion according to the chain of transformations.


Correct. It would be at (0,2,0) until you changed a's local translation which would be scaled.