Hi,
after reading this post, I understand that to manage rotation of 2 scenenode (parent and child) I need a dummyscenenode, but I can't clearly understand how to do it...
For example I have 2 indipendent TestSceneNode that can be moved and rotated indipendently, then I would like to attach one to the other with a parent-child relationship and move and rotate them linked together.
Can anyone show me how to do this, posting an example about 2 scenenode (parent and child)?
How to use a IDummyTransformationSceneNode?
I probably didn't explain correctly the kind of my problem...
Imagine to have 2 cubes (TestSceneNodes) created in (0,0,100) and (0,0,110) and then try to attach the second cube to the first doing something like this:
You will notice that the second cube moves to (0,0,210). I don't want this to happen when I link 2 nodes! I want the child preserves the absolute position and rotation!
How to do it?
Now I've solved the position matter moving the second cube to the original position but I'm not able to solve the rotation matter!
Thanks for any help!
Fabio.
Imagine to have 2 cubes (TestSceneNodes) created in (0,0,100) and (0,0,110) and then try to attach the second cube to the first doing something like this:
Code: Select all
second->setParent(first)
How to do it?
Now I've solved the position matter moving the second cube to the original position but I'm not able to solve the rotation matter!
Thanks for any help!
Fabio.