Light control

I was following a guide and im really new to this the code calls


and it puts a red squiggle line under "Spatial" i know that means its an error but i don't know what the light type is called to fix the problem. I read somewhere that you can learn from the example code so i looked at the "com.jme.light" I didnt find it there. Could it be that im not importing something? I have imported

import com.jme.bounding.BoundingBox;
import com.jme.bounding.BoundingSphere;
import com.jme.math.Vector3f;
import com.jme.renderer.ColorRGBA;
import com.jme.scene.Node;
import com.jme.scene.shape.Box;
import com.jme.scene.shape.Sphere;
import com.jme.scene.state.LightState;

Thanks ahead of time (~.0)

at a guess:

import com.jme.scene.Spatial;

If you're using an IDE then I would let it organise your imports for you (ctrl-shift-o or right click -> source -> organise imports in eclipse). It will make life a lot easier. Well, maybe not. I mean it won't cook your breakfast or earn you a steady income. But it will save you worrying about which Java import you missed.

Cool Thanks :slight_smile: