[rotation] "what my-stery"

Hi all,

I have a mode iported from 3dstudio (Z_UP), i rotate it with usual method:



        Quaternion rotation = new Quaternion();
        rotation.fromAngleAxis(FastMath.PI / 2.0f, new Vector3f(-1f, 0f, 0f));
        colladaModel.setLocalRotation(rotation);



now i need to rotate it free into 360

would be better if u can provide more code.



one suggestion is that if u r making a player to face where it walks towards, u can do player.getlocalrotation.lookAt(destinationCloneVector.subtractlocal(playerLocal).normalizeLocal);



but make sure u dont modify the original vectors.

Other code are very simple importing Collada model and put it in the scene to render it…



but it was face opposit to camera…



the code:



      try
      {
          SimpleResourceLocator srp;
         srp = new SimpleResourceLocator(ColladaDOT3.class.getClassLoader().getResource("data/textures/"));
          ResourceLocatorTool.addResourceLocator( ResourceLocatorTool.TYPE_TEXTURE, srp);
      }
      catch (URISyntaxException e)
      {
         e.printStackTrace();
      }

       InputStream poltrona = ColladaDOT3.class.getClassLoader().getResourceAsStream("data/models/poltrona.dae");
      
      ColladaImporter.load(poltrona, "poltrona");
      Node colladaModel = ColladaImporter.getModel();
      
        //MaxToJme Axis
        Quaternion rotation = new Quaternion();
        rotation.fromAngleAxis(FastMath.PI / 2.0f, new Vector3f(-1f, 0f, 0f));
        colladaModel.setLocalRotation(rotation);

nothing change… what i need is rotating free by increasing or decreasing a value in a defined axis…