title: How to rotate a rectangle continously in a specific angle in Java 3D
body: <p>I used the following code to rotate a rectangle along x-axis. But the problem is, I want to change the rotation angle continuously by loop, or by taking the values from user input. As I am new in java 3D, I have no idea how to do that. 
  Any kind of help is great for me, THANKS IN ADVANCE! </p>
  
  <pre><code>  SimpleUniverse universe = new SimpleUniverse();
    BranchGroup group = new BranchGroup();
    ColorCube c = new ColorCube(0.3);
  
    Transform3D t1 = new Transform3D();
    t1.rotX(Math.PI/2.0d);    
  
    TransformGroup tg1 = new TransformGroup(t1);
  
    tg1.addChild(c);
    group.addChild(tg1);
    group.compile();
  
    universe.getViewingPlatform().setNominalViewingTransform();
    universe.addBranchGraph(group);
  </code></pre>