object merged can't control

Started by yxbnnl, March 27, 2009, 04:45:08 AM

Previous topic - Next topic

yxbnnl

I try to use mergeObjects() merge an object ,but  the object can't  rotateX , rotateY , rotateZ .

paulscode

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.

yxbnnl

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

EgonOlsen

Have you checked if your button's listener method is actually being called?

yxbnnl

thanks , i already resolve the questions!
thanks!