Author Topic: how to control scaling and tranformations and orientations in JPCTDemo example  (Read 2358 times)

Offline abhi13feb

  • byte
  • *
  • Posts: 37
    • View Profile
hey can someone tell me that how to control scaling and tranformations and orientations in JPCTDemo example

Offline fireside

  • double
  • *****
  • Posts: 605
    • View Profile

Right before the level is added to the world, add the lines:
level.translate(x,y,z);
level.rotateX(float);
level.rotateY(float);
level.rotateZ(float);
level.scale(float);


I think that's right, but I'm kind of a noob with jpct and I haven't used Java in a while.
« Last Edit: March 29, 2008, 10:10:59 am by fireside »
click here->Fireside 7 Games<-

Offline abhi13feb

  • byte
  • *
  • Posts: 37
    • View Profile
So will it enable me to keep start position at any place and orientation.....?
see ..my main prob is to keep the postion ,orientation and scaling of atart postion as per my choice..

Offline fireside

  • double
  • *****
  • Posts: 605
    • View Profile
The start position is the position of the camera.  You really need to work in the y-up position of the modeler so the gravity works, etc, so it's better to work on the orientation of your model inside your modeling program before you export it.  Just play around and you'll figure it out.
« Last Edit: March 29, 2008, 12:01:51 pm by fireside »
click here->Fireside 7 Games<-