www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: yxbnnl on March 27, 2009, 04:45:08 am

Title: object merged can't control
Post by: yxbnnl on March 27, 2009, 04:45:08 am
I try to use mergeObjects() merge an object ,but  the object can't  rotateX , rotateY , rotateZ .
Title: Re: object merged can't control
Post by: paulscode 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.
Title: Re: object merged can't control
Post by: yxbnnl 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
Title: Re: object merged can't control
Post by: EgonOlsen on March 27, 2009, 08:10:14 am
Have you checked if your button's listener method is actually being called?
Title: Re: object merged can't control
Post by: yxbnnl on March 27, 2009, 09:01:47 am
thanks , i already resolve the questions!
thanks!