Hello everybody,

I have created a hierarchy of BranchGroup  and TransformGroup defining a
human skeleton :


                                                   BG         Center of
gravity
                                                     |
                                                    TG
            ----------- --------------- /\-----------------------
            |                                      /
\                                |
            |                                     /
\                               |
            |                                   /
\                              |
      rightHeap         rightShoulder        leftShoulder       leftHeap

            |                            |
|                     |
      rightKnee         rightElbow            leftElbow
leftKnee
            |                            |
|                    |
      rightFoot           rightHand            leftHand
leftFoot

Each node is composed of a transformGroup parented to a BranchGroup;
I want at any time to be able to move and rotate the end effectors of
this skeleton (hands, feet en COG);
The problem is that when I am trying to access to one of this
TransformGroup's transformation (getTransform())
I get the following error :

Exception in thread "main" java.lang.NullPointerException
        at
javax.media.j3d.TransformGroupRetained.getTransform(TransformGroupRetained.java
: 105)
        at
javax.media.j3d.TransformGroup.getTransform(TransformGroup.java:100)
        at BipedeSkeleton.moveLeftFoot(BipedeSkeleton.java:400)
        at BipedeSkeleton.builSkeleton(BipedeSkeleton.java:256)
        at BipedeSkeleton.<init>(BipedeSkeleton.java:102)
        at BipedeSkeleton.main(BipedeSkeleton.java:453)

I think I have set all the necessary capabilities correctly so what is
wrong ?

Thanks in advance and HAPPY NEW YEAR TO ALL OF YOU.

Pascal.

------------------------------------------------------------------------------------

Pascal Debarge / Lead Developer / Animation Science
[EMAIL PROTECTED]
(408) 543 16 15

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to