Hello. I would just like to say that I believe I have JME2 and JMEPHYSICS installed correctly, because I can run the tests of them off my IDE. I am using Eclipse.
I am working off this tutorial:
http://www.jmonkeyengine.com/wiki/doku.php?id=tutorial_2_-_learning_jme_2
I have copied and pasted the code into my IDE, but I get one error which stops me from going past the startup screen.
"Spatial cannot be resolved to a type"
Here is the code with Spatial in it:
rootNode.setLightCombineMode(Spatial.LightCombineMode.Off);
So, basically, I am wondering if I installed something wrong, or how come I am getting this error.
Thank you for any help!
Ok, I know I just posted, but, what I decided to do was I went into the Flashrush tutorial 9 class, and I found some code for Spatial:
Spatial model = null;
I added that in right above the previous,
rootNode.setLightCombineMode(Spatial.LightCombineMode.Off);
Once I added it in, it loaded the scene normally. is this a correct way to fix this problem?
Eggsworth said:
Ok, I know I just posted, but, what I decided to do was I went into the Flashrush tutorial 9 class, and I found some code for Spatial:
Spatial model = null;
I added that in right above the previous,
rootNode.setLightCombineMode(Spatial.LightCombineMode.Off);
Once I added it in, it loaded the scene normally. is this a correct way to fix this problem?
Can you show a bit more of the code. I've ran it and it works
Nodes & Geometries extends Spatial
You probyly just were missing the import.
In Eclipse you can hit CTRL+SHIFT+O to 'Organize Imports'
The Code in the Wiki might be out of date, its better to use the Samples in the jmetest package with comes with the jme source.