Author Topic: trying to understand the Car sample  (Read 1963 times)

Offline athanazio

  • byte
  • *
  • Posts: 49
    • View Profile
    • http://www.athanazio.pro.br
trying to understand the Car sample
« on: November 21, 2006, 04:39:59 pm »
I'm very happy with the engine ! but I got stuck at one piece of code at the Car sample ...

Code: [Select]
     
      /**
       * The terrain isn't located where we want it to, so we take
       * care of this here:
       */
      SimpleVector pos=terrain.getCenter();
      pos.scalarMul(-1f);
      terrain.translate(pos);
      terrain.rotateX((float)-Math.PI/2f);
      terrain.translateMesh();
      terrain.rotateMesh();
      terrain.setTranslationMatrix(new Matrix());
      terrain.setRotationMatrix(new Matrix());


I just dont understand this ... :D any help would be great !