i started a project a long time ago and have been using jme1. a few hours ago, i downloaded and made the necessary changes in my code for jme2. the only thing that i haven't figured out is an error that happens at this line:
dynamicNode.generatePhysicsGeometry(true);
where dynamicNode is a dynamic node (d'uh ), specifically a TriMesh box
doesn't work with static nodes either.
i get the same error on everything, including terrain pages etc.
everything worked ok on jme1.
this is the exception i get:
Exception in thread "Thread-5" java.lang.NoSuchMethodError: com.jme.scene.Geometry.getBatch(I)Lcom/jme/scene/batch/GeomBatch;
at com.jmex.physics.PhysicsNode.generatePhysicsGeometry(PhysicsNode.java:239)
at com.jmex.physics.PhysicsNode.addPhysicsGeometries(PhysicsNode.java:197)
at com.jmex.physics.PhysicsNode.generatePhysicsGeometry(PhysicsNode.java:167)
at com.jmex.physics.PhysicsNode.generatePhysicsGeometry(PhysicsNode.java:142)
at com.jmex.physics.PhysicsNode.generatePhysicsGeometry(PhysicsNode.java:127)
what's the catch? :D
(btw, i'm using jme-physics 2.1)
I had this problem too. Did you check out the physics from googlecode or did you download the jars? Only the SVN code is for jME2. By the way, since jME2.0 is pretty much considered final now shouldn't jME-physics jars be included for jME2 as well?
I had this problem too. Did you check out the physics from googlecode or did you download the jars? Only the SVN code is for jME2. By the way, since jME2.0 is pretty much considered final now shouldn't jME-physics jars be included for jME2 as well?
Do you mean on the googlecode physics download page or the actual jME download page? (please clarify Momoko_Fan :))
edit: If its on the physics googlecode page, I think either irrisor or possibly nymon would have to do that...
I have the same problem … and I can't figure it out … I downloaded and tried with the latest JME and Physics built jars … no luck …
I checked out lastest JME 2 from SVN on googlecode and rebuilt jars … created JME library since I'm working in eclipse but still get the same exception …
do I have to take out Physics from SVN too ? … any help would be appreciated …
Kind regards
Armando
PS: a total game creational newby here !!! (please consider that)