Clip "sequence" issue.

Started by Babu, June 29, 2011, 03:58:40 PM

Previous topic - Next topic

Babu

hi raft,

Can you please let me know if there is logic behind the index nos. for the pose-clips (in the PoseClipSequence)?
I am seeing that the sequence (or order) in which pose-clips are present in the xml file is not the same as it is in the PoseClipSequence  :(

For my app I need the pose-clips to be in some predictable sequence.  So,
1. What should I do so that the order in the xml file and the order in the PoseClipSequence are same?
2. Or is there possibility of "animatePose()" API supporting a clip-name in the near future?

Thanks,
Babu

raft

i see. that happens because jME puts animations in a HashMap and HashMap does not preserve insertion order. i replaced it with a LinkedHashMap and now order is preserved. please re-download the zip.

Babu

thanks a lot, raft, you rock!!  :D