hi I have made a manual object representing my nodes geometrical physics data , but I now have a
problem I am not sure how to code correct .
I create a child object from the node like
child =parent-> createchildscenenode
child->attachobject (manualobject)
but my child now offsets its position relative to the
parend node ,because my geometrical data were
taken from the parend node ,wich means the parent
nodes positions of the physics vertices etc were used
to create the manual object wich were relative to the
rootscenenode .
now I want to reposition my child node so its
position and orientation is exactly the same position
and orientation of the parent .
what I have done with the child position was this
child->setposition (child->getposition - parent->getposition)
wich looks like it works but , i cannot get the orientation exactly as the parent's ?
[solved] move and orient child to match parent
-
- Gnoblar
- Posts: 5
- Joined: Sun Aug 24, 2014 6:19 pm
[solved] move and orient child to match parent
Last edited by Crimson on Sun Sep 07, 2014 7:42 pm, edited 1 time in total.
-
- Gnoblar
- Posts: 5
- Joined: Sun Aug 24, 2014 6:19 pm
Re: move and orient child to match parent
I fixed it ..