Cinematic with JME3

Hello, sorry but I still have a problem! I just downloaded the new version of my cinematic Jme but does not work anymore … when I click either my objects move by teleporting or it does not move …



[java]for(int i = 0; i < objectSelect.size(); i++) // Bouge vaisseaux dans l’array Object

{

distance = (float) Math.sqrt((xDestination - objectSelect.get(i).getLocalTranslation().x)(xDestination-objectSelect.get(i).getLocalTranslation().x) + (zDestination - objectSelect.get(i).getLocalTranslation().z)(zDestination - objectSelect.get(i).getLocalTranslation().z));

objectSelect.get(i).lookAt(new Vector3f(xDestination,0,zDestination),new Vector3f(Vector3f.ZERO));

cinematic = new Cinematic(objectSelect.get(i), distance/10);



MotionPath path = new MotionPath();

path.setPathSplineType(SplineType.Linear);

path.addWayPoint(objectSelect.get(i).getLocalTranslation());

path.addWayPoint(new Vector3f(xDestination,0,zDestination + (i2)));



cameraMotionTrack = new MotionTrack(objectSelect.get(i), path);

cameraMotionTrack.setDirection(cam.getDirection());

cameraMotionTrack.setDirectionType(MotionTrack.Direction.LookAt);

cameraMotionTrack.setSpeed(30);





//cinematic.addCinematicEvent(0, new PositionTrack(objectSelect.get(i), new Vector3f(xDestination,0,zDestination + (i
2)), distance/10, LoopMode.Loop));

cinematic.addCinematicEvent(0, cameraMotionTrack);

stateManager.attach(cinematic);

System.out.println(“aaa”);

cinematic.play();

}[/java]



:confused:



thanks

dretz said:
I just downloaded the new version of my cinematic Jme

What does that mean? you updated to the last JME version that's it?

sorry I’m not english^ ^

I downloaded the new version. and my code on the cinematic does not work anymore! my object no longer moves or teleport to the desired location!

ok.

What if you launch TestCinematic in the test repo? do you have similar issues?

dretz said:
sorry I'm not english^ ^


Don't worry. You don't need to be british :)