Author Topic: why I can't rotate my md2 model?  (Read 901 times)

Offline Davi

  • byte
  • *
  • Posts: 33
    • View Profile
why I can't rotate my md2 model?
« on: October 28, 2011, 03:57:56 am »
before use world.addObject(md2); I want to let my model rotate 90 angle,
I use md2.rotateX(90);
or
   
Matrix ma=new Matrix();
      ma.rotateX(90);
      ma.rotateY(90);
      ma.rotateZ(90);
        snork.setRotationMatrix(ma);

 But why it can't work???

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11746
    • View Profile
    • http://www.jpct.net
Re: why I can't rotate my md2 model?
« Reply #1 on: October 28, 2011, 08:24:17 am »
Not in degrees, in radians. I.e. 90 should be Math.PI/2 instead.