Tabnine Logo
Grid.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.jme3.scene.debug.Grid
constructor

Best Java code snippets using com.jme3.scene.debug.Grid.<init> (Showing top 5 results out of 315)

origin: jMonkeyEngine/jmonkeyengine

public void putGrid(Vector3f pos, ColorRGBA color){
  putShape(new Grid(6, 6, 0.2f), color, 1).center().move(pos);
}
origin: jMonkeyEngine/jmonkeyengine

rootNode.addLight(al);
Grid grid = new Grid(50, 50, 5);
Geometry gridGeom = new Geometry("grid", grid);
gridGeom.setMaterial(new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"));
origin: jMonkeyEngine/jmonkeyengine

rootNode.addLight(al);
Grid grid = new Grid(50, 50, 5);
Geometry gridGeom = new Geometry("grid", grid);
gridGeom.setMaterial(new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"));
origin: tonihele/OpenKeeper

  public static void attachWireFrameDebugGrid(AssetManager assetManager, Node n, Vector3f pos,
      Integer size, ColorRGBA color) {
    Geometry g = new Geometry("wireFrameDebugGrid", new Grid(size, size, 1.0f));  //1WU
    Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
    mat.getAdditionalRenderState().setWireframe(true);
    mat.setColor("Color", color);
    g.setMaterial(mat);
    g.center().move(pos);
    n.attachChild(g);
  }
}
origin: net.sf.phat/phat-core

  private static void attachGrid(Vector3f pos, float size, ColorRGBA color,
      AssetManager assetManager, Node rootNode) {
    Geometry g = new Geometry("wireframe grid", new Grid((int) size, (int) size, 1f));
    Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
    mat.getAdditionalRenderState().setWireframe(true);
    mat.setColor("Color", color);
    g.setMaterial(mat);
    g.center().move(pos);
    rootNode.attachChild(g);
  }
}
com.jme3.scene.debugGrid<init>

Javadoc

Creates a grid debug shape.

Popular methods of Grid

  • setBuffer
  • setMode
  • updateBound
  • updateCounts
  • setStatic

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • addToBackStack (FragmentTransaction)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now