Hi,

Robin Steinke wrote:
> Hi everybody,
>
> i want to animate a leg. this leg consists of links and leg parts. for 
> the animation i use inverse kinematics. now i have a *.bin file, which 
> contains the complete leg in hierarchical order. to animate the leg, i 
> need access to the transform nodes. and basically this is my question, 
> how can i do that? my idea was, to store the transform nodes into a 
> vector, and fill this vector by traversal the graph. but how? i only 
> managed to receive the NodePtr by node->getChild(i) but not the 
> TransformPtr. any suggestions on that?
>
>   
If I understood you correctly, I think that should work.
Some loaders (VRML ..) create a ComponentTransform core instead of just 
a Transform core.
So try dcasting node->getCore()  to  ComponentTransformPtr 
(ComponentTransformPtr::dcast(node->getCore())).
> and maybe i get the whole concept wrong...
>
> thanks a lot,
>
> best regards,
>
> robin steinke
>   
Hope it helps,
Christoph

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to