I tried to add in the scene an imported model (3ds) with any nodes.
Once added the player falls down in the space.
For each node of model the system told me, for example :
WARNING: no model bound: NoName+Leg_plate (com.jme.scene.TriMesh)
in fact the model has no boundings, and than I think the physics system cannot handle this.
Now, when I try to do :
model.setModelBound(new BoundingBox());
model.updateModelBound();
The app crashes telling :
WARNING: Skipped geometry:
java.lang.IllegalArgumentException: Extent cannot have a component that is 0 to generate collision geometries!
at com.jmex.physics.PhysicsNode.createPhysicsGeometry(PhysicsNode.java:237)
at com.jmex.physics.PhysicsNode.addPhysicsGeometries(PhysicsNode.java:174)
at com.jmex.physics.PhysicsNode.addPhysicsGeometries(PhysicsNode.java:207)
at com.jmex.physics.PhysicsNode.generatePhysicsGeometry(PhysicsNode.java:96)
at com.jmex.physics.PhysicsNode.generatePhysicsGeometry(PhysicsNode.java:76)
at it.local.physic.TestPhysics.initGame(TestPhysics.java:139)
at com.jme.app.BaseGame.start(Unknown Source)
at it.local.physic.TestPhysics.main(TestPhysics.java:52)
Well, I think the problem is reguarding the model, each node shuld have the appropriate bound, isn't it ?
I found no example and no guide, a link will be appreciated.
It's hard to be a newbee but someone must be.