Trying to write simple game inspired by Wolkenstein game. But getting following problem in InitGame for the statement rootNode.updateGeometricState(0.0f, true);
Please help.
java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.ArrayList.get(ArrayList.java:323)
at com.jme.animation.SpatialTransformer.setBeginAndEnd(Unknown Source)
at com.jme.animation.SpatialTransformer.update(Unknown Source)
at com.jme.scene.Spatial.updateWorldData(Unknown Source)
at com.jme.scene.Node.updateWorldData(Unknown Source)
at com.jme.scene.Spatial.updateGeometricState(Unknown Source)
at com.jme.scene.Node.updateWorldData(Unknown Source)
at com.jme.scene.Spatial.updateGeometricState(Unknown Source)
at com.jme.scene.Node.updateWorldData(Unknown Source)
at com.jme.scene.Spatial.updateGeometricState(Unknown Source)
at com.jme.scene.Node.updateWorldData(Unknown Source)
at com.jme.scene.Spatial.updateGeometricState(Unknown Source)
i'd suggest you use a debugger and also grab the source code of jme. that way you'll be able to track down your problems
it looks like there's something wrong with your animations.
Thanks, I will try that way.
or submit your initgame code so we can help you find out if something is fishy