0

Using blender Im used to apply any transformations to object with CTRL+A; so object becomes zero transformations (rotation/scale/position). Then I can transform object from scratch not worring about previous transformations. Is there any way to do the same in THREE.JS? Something like THREE.Object3D.commitTransforms()? blender

  • See: https://stackoverflow.com/questions/27022160/three-js-can-i-apply-position-rotation-and-scale-to-the-geometry – WestLangley Oct 22 '19 at 17:42

1 Answers1

0

You should be able to achieve the intended effect by using BufferGeometry.applyMatrix() and passing the Object3D.matrixWorld into it. This will bake the world transformation into the geometry.

However, you have to manually reset Object3D.position, Object3D.scale and Object3D.rotation.

three.js R109.

Mugen87
  • 28,829
  • 4
  • 27
  • 50