Author Topic: object merged can't control  (Read 1906 times)

Offline yxbnnl

  • byte
  • *
  • Posts: 19
    • View Profile
object merged can't control
« on: March 27, 2009, 04:45:08 am »
I try to use mergeObjects() merge an object ,but  the object can't  rotateX , rotateY , rotateZ .

Offline paulscode

  • double
  • *****
  • Posts: 863
    • View Profile
    • PaulsCode.Com
Re: object merged can't control
« Reply #1 on: March 27, 2009, 05:28:15 am »
I'm sorry, but I don't understand your question yet.  Could you please explain it in more detail?  It might be helpful if you would provide some source code to demonstrate the problem you are experiencing.  Sometimes a diagram helps to explain a problem, also.

Offline yxbnnl

  • byte
  • *
  • Posts: 19
    • View Profile
Re: object merged can't control
« Reply #2 on: March 27, 2009, 06:50:08 am »
Code: [Select]
Object3D[] beetle = Loader.load3DS("impreza" + c + "impreza.3ds", 6f);
car= new Object3D(0);
for (int i = 0; i < beetle.length; i++) {
Object3D part = beetle[i];
part.setCenter(SimpleVector.ORIGIN);
part.rotateX((float) -Math.PI / 2);
part.rotateMesh();
part.setRotationMatrix(new Matrix());
car= Object3D.mergeObjects(car, part);
}
I want use JButton control "car" rotate. but i can't

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11746
    • View Profile
    • http://www.jpct.net
Re: object merged can't control
« Reply #3 on: March 27, 2009, 08:10:14 am »
Have you checked if your button's listener method is actually being called?

Offline yxbnnl

  • byte
  • *
  • Posts: 19
    • View Profile
Re: object merged can't control
« Reply #4 on: March 27, 2009, 09:01:47 am »
thanks , i already resolve the questions!
thanks!