gzlock

Members
  • Content count

    6
  • Joined

  • Last visited

  1. Playground editor cursor mis-aligned in Chrome

    Mac: 10.13.1 Chrome: 62.0.3202.94 Chrome had this problem +1 And hope to set up a switch to control the mini map to display or not
  2. This code can be more shortened a little more Box1.setPivotPoint(Box1.getBoundingInfo().boundingBox.center);
  3. @Wingnut @JohnK Thank you! Less code than JohnK. Box1.setPivotPoint(Box1.getBoundingInfo().boundingBox.centerWorld, BABYLON.Space.WORLD); http://www.babylonjs-playground.com/index.html#Q4KURW
  4. @Wingnut No effect for the CSG program generated mesh object. mesh.setPivotMatrix(BABYLON.Matrix.Identity()); As same as with NewMesh.setPivotMatrix(BABYLON.Matrix.Translation(0, 0, 0));
  5. code: http://www.babylonjs-playground.com/#Y5561T The green object was generated from CSG (BoxA.intersect(BoxB)) and the pivot point was inherited from BoxA. So I want to let the pivot point of the new object reset to the center. I tested NewMesh.setPivotMatrix(BABYLON.Matrix.Translation(0, 0, 0)); but the pivot point still stay in place. How to do it by easy way?