Burnings nodes

Hi all,

How i can burn a node?



I try to get it from example TestFireMilk but my node return an exception:



manager.setGeometry((Geometry)(node.getChild(0)));



java.lang.ClassCastException: com.jme.scene.Node

at completeTest.Crateri_With_Sound.simpleInitGame(Crateri_With_Sound.java:368)

at com.jme.app.BaseSimpleGame.initGame(BaseSimpleGame.java:484)

at com.jme.app.BaseGame.start(BaseGame.java:56)

at completeTest.Crateri_With_Sound.main(Crateri_With_Sound.java:64)





Whats wrong?

i suppose you cast a Node object to Geometry. if you are not familiar with the jme scenegraph, either take a closer look at the classes/tests or use a debugger to inspect your objects at runtime.

Thanks for reply :slight_smile:



I have checked TestFireMilk.java again and it do the same as me "maybe?" :?

this is my code: