@galacean/effects-threejs 2.3.1 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * Description: Galacean Effects runtime threejs plugin for the web
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
6
- * Version: v2.3.1
6
+ * Version: v2.3.2
7
7
  */
8
8
 
9
9
  'use strict';
@@ -17955,6 +17955,7 @@ var seed$4 = 1;
17955
17955
  this.rotation.y = y;
17956
17956
  this.rotation.z = z;
17957
17957
  this.quat.setFromEuler(this.rotation);
17958
+ // TODO 修正 GE 四元数旋转共轭问题
17958
17959
  this.quat.conjugate();
17959
17960
  this.dirtyFlags.localData = true;
17960
17961
  this.dispatchValueChange();
@@ -28856,6 +28857,8 @@ var tmpScale = new Vector3(1, 1, 1);
28856
28857
  0,
28857
28858
  0
28858
28859
  ] : _options_rotation;
28860
+ var euler = new Euler(rotation[0], rotation[1], rotation[2]);
28861
+ var quat = new Quaternion().setFromEuler(euler);
28859
28862
  this.options = {
28860
28863
  near: near,
28861
28864
  far: far,
@@ -28864,7 +28867,7 @@ var tmpScale = new Vector3(1, 1, 1);
28864
28867
  clipMode: clipMode
28865
28868
  };
28866
28869
  this.transform.setPosition(position[0], position[1], position[2]);
28867
- this.transform.setRotation(rotation[0], rotation[1], rotation[2]);
28870
+ this.transform.setQuaternion(quat.x, quat.y, quat.z, quat.w);
28868
28871
  this.dirty = true;
28869
28872
  this.updateMatrix();
28870
28873
  }
@@ -32118,7 +32121,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem);
32118
32121
  registerPlugin("particle", ParticleLoader, exports.VFXItem);
32119
32122
  registerPlugin("cal", CalculateLoader, exports.VFXItem);
32120
32123
  registerPlugin("interact", InteractLoader, exports.VFXItem);
32121
- var version$1 = "2.3.1";
32124
+ var version$1 = "2.3.2";
32122
32125
  logger.info("Core version: " + version$1 + ".");
32123
32126
 
32124
32127
  var _obj;
@@ -33718,7 +33721,7 @@ setMaxSpriteMeshItemCount(8);
33718
33721
  */ Mesh.create = function(engine, props) {
33719
33722
  return new ThreeMesh(engine, props);
33720
33723
  };
33721
- var version = "2.3.1";
33724
+ var version = "2.3.2";
33722
33725
  logger.info("THREEJS plugin version: " + version + ".");
33723
33726
 
33724
33727
  exports.AbstractPlugin = AbstractPlugin;