I have a very very basic question…I am unable to create a cylinder…I am using the following code snippet……no matter how I change the values I cant see a cylinder
/*
- To change this template, choose Tools | Templates
- and open the template in the editor.
*/
package smakit.kittu;
import com.jme3.app.SimpleApplication;
import com.jme3.material.Material;
import com.jme3.scene.Geometry;
import com.jme3.scene.shape.Cylinder;
import com.jme3.math.ColorRGBA;
/**
*
-
@author Chaitanya
*/
public class Tree extends SimpleApplication {
public static void main(String[] args){
Tree app = new Tree();
app.start(); // start the game
}
public void simpleInitApp() {
Cylinder mesh = new Cylinder(100,100,20f,30f,true,false);
Geometry geom = new Geometry(“Cylinder”, mesh);
Material mat = new Material(assetManager,
“Common/MatDefs/Misc/Unshaded.j3md”);
geom.setMaterial(mat);
mat.setColor(“Color”, ColorRGBA.Red);
rootNode.attachChild(geom);
}
}
Please please help me out