My staticNode won't rotate

Hi,



I'm using jME CVS and the new jME Physics (0.5 CVS).



I've got a problem with a staticNode, because it won't rotate. This is the code I use:



    private void createFloor() {

        final StaticPhysicsNode staticNode = getPhysicsSpace().createStaticNode();

        staticNode.createBox( "box physics" );

        staticNode.setLocalScale( new Vector3f( 10, 0.2f, 10 ) );

        staticNode.getLocalTranslation().set( 0, -2, 0 );

        staticNode.getLocalScale().multLocal( 1.2f );



        Quaternion q = new Quaternion();

        q.fromAngleAxis(FastMath.PI/2, new Vector3f(0,0.5f,0));

        staticNode.getLocalRotation().set( q );

       

        staticNode.setMaterial( Material.CONCRETE );

        rootNode.attachChild( staticNode );

    }



Thanks in advance for your help.



Regards,



Jeroen

Vortex said:

I'm using jME CVS and the new jME Physics (0.5 CVS).

You don't :P - according to the code you are using jME Physics 2 beta1 :D


I've got a problem with a staticNode, because it won't rotate.

It does rotate! You just don't notice it, because you rotate a box 90 degrees around the y axis :lol:

e.g. divide PI by 4 to get it 45

I was aware that I was using jME Physics 2 beta1. I thought that this was going to be jME Physics version 0.5.



I