• Content count

  • Joined

  • Last visited

  1. This is a phone app of the html5 game platform, just support custom touch events. No other input events. And hand.js not working. btw: I posted 2 replies to the ใ€Report postใ€‘ button ๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚
  2. html env: app custom webview js env: like JavaScriptCore Babylon.js version: 3.1.1 That app custom webview just can use touch events, so all of the features that rely on pointer events are not working! So, how to let the babylon.js adapt the events change? My test results: canvas.addEventListener('pointerdown', () => { console.log('Pointer down!') }); canvas.addEventListener('touchstart', () => { console.log('Touch Start!') });
  3. 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
  4. This code can be more shortened a little more Box1.setPivotPoint(Box1.getBoundingInfo().boundingBox.center);
  5. @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
  6. @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));
  7. 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?