So, I've modified the loadFerito() method as follow:
public void loadFerito(String name, float x, float y, float z){
Object3D animateMe=null;
texMan=TextureManager.getInstance();
texMan.addTexture(name+".jpg",new Texture(getDocumentBase(),"textures/feriti/"+name+".jpg"));
Object3D[] animArray=Loader.load3DS(getDocumentBase(),"3ds/"+name+"_anim.3ds", 20f);
animateMe=animArray[0];
animateMe.setCenter(SimpleVector.ORIGIN);
animateMe.translate (x, y+55, z);
animateMe.rotateX((float)-Math.PI/2);
animateMe.rotateMesh();
animateMe.setRotationMatrix(new Matrix());
animateMe.createTriangleStrips(2);
animateMe.setCollisionMode(Object3D.COLLISION_CHECK_OTHERS);
animateMe.setCollisionOptimization(Object3D.COLLISION_DETECTION_OPTIMIZED);
//animateMe.build();
Animation anim=new Animation(animArray.length);
anim.createSubSequence("standing-up");
for (int i=0; i<animArray.length; i++) {
animArray[i].build();
anim.addKeyFrame(animArray[i].getMesh().cloneMesh(true));
}
animateMe.setAnimationSequence(anim);
animateMe.animate(0);
theWorld.addObject(animateMe);
}
where animArray[0] contains the first ferito's pose and animArray[1] contains the second that is, at this moment, the last. Running the applet nothing happens... Do you see any problem in my code?
Bye