Hey guys,
I have a fairly complex model im trying to use as a "floor" in the engine. Its basically a piece of the city I live in… The model will load in the engine fine unless i call generatePhysicsGeometry on it. Then it will crash with the following error
com.jmex.physics.PhysicsNode createPhysicsGeometry
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:357)
at com.jmex.physics.PhysicsNode.generatePhysicsGeometry(PhysicsNode.java:304)
at com.jmex.physics.PhysicsNode.addPhysicsGeometries(PhysicsNode.java:202)
at com.jmex.physics.PhysicsNode.addPhysicsGeometries(PhysicsNode.java:223)
at com.jmex.physics.PhysicsNode.addPhysicsGeometries(PhysicsNode.java:223)
at com.jmex.physics.PhysicsNode.generatePhysicsGeometry(PhysicsNode.java:172)
at com.jmex.physics.PhysicsNode.generatePhysicsGeometry(PhysicsNode.java:147)
at com.jmex.physics.PhysicsNode.generatePhysicsGeometry(PhysicsNode.java:132)
at com.jmex.physics.PhysicsNode.generatePhysicsGeometry(PhysicsNode.java:119)
at RtsMain.simpleInitGame(RtsMain.java:138)
at com.jme.app.BaseSimpleGame.initGame(BaseSimpleGame.java:503)
at com.jme.app.BaseGame.start(BaseGame.java:69)
at RtsMain.main(RtsMain.java:374)
Jun 2, 2008 3:20:40 PM class RtsMain start()
SEVERE: Exception in game loop
java.lang.IllegalArgumentException: scale must not have 0 as a component (geom 'Line185##0')!
at com.jmex.physics.impl.ode.geometry.OdeBox.updateWorldVectors(OdeBox.java:69)
at com.jme.scene.Spatial.updateWorldData(Spatial.java:386)
at com.jme.scene.Spatial.updateGeometricState(Spatial.java:351)
at com.jme.scene.Node.updateWorldData(Node.java:395)
at com.jme.scene.Spatial.updateGeometricState(Spatial.java:351)
at com.jmex.physics.impl.ode.OdePhysicsSpace.updateScene(OdePhysicsSpace.java:827)
at com.jmex.physics.impl.ode.OdePhysicsSpace.update(OdePhysicsSpace.java:620)
at com.jmex.physics.util.SimplePhysicsGame.update(SimplePhysicsGame.java:141)
at com.jme.app.BaseGame.start(BaseGame.java:79)
at RtsMain.main(RtsMain.java:374)
What is wrong with my model that Jmonkey doesn't like? Any Ideas?