浏览代码

Make Scene Composer grid symmetrical

Pete Whelpton 2 年之前
父节点
当前提交
088cb96b5b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      jme3-core/src/com/jme3/gde/core/scene/controller/SceneToolController.java

+ 2 - 2
jme3-core/src/com/jme3/gde/core/scene/controller/SceneToolController.java

@@ -136,9 +136,9 @@ public class SceneToolController extends AbstractAppState {
         //cursor.attachChild(cursorArrowZ);
         //cursor.attachChild(cursorArrowZ);
 
 
         //grid
         //grid
-        grid = new Geometry("grid", new Grid(20, 20, 1.0f));
+        grid = new Geometry("grid", new Grid(21, 21, 1.0f));
         grid.setMaterial(grayMat);
         grid.setMaterial(grayMat);
-        grid.setLocalTranslation(-10, 0, -10);
+        grid.center().move(Vector3f.ZERO);
         SceneApplication.getApplication().enqueue(new Callable<Object>() {
         SceneApplication.getApplication().enqueue(new Callable<Object>() {
             @Override
             @Override
             public Object call() throws Exception {
             public Object call() throws Exception {