threejs报错:setRotationFromEuler is not a function

https://stackoverflow.com/questions/tagged/three.js

 

Matrix4变量。。http://www.yanhuangxueyuan.com/doc/three.js/matrix4.html

threejs的Matrix对象具有哪些函数?

如果你有线性代数的基础,自然对象矩阵并不陌生,如果对大学所学的线性代数具体知识已经忘记了也没有关系,Three.js的矩阵库对常见的矩阵运算都进行了封装,如果不是为了封装或扩展3D引擎,只是开发一些常见3D项目,你只需要有一些基本的概念,会调用矩阵对象Matrix相关的方法就可以。

https://github.com/mrdoob/three.js/pull/3210

>>解决办法:

我把setRotationFromEuler改成makeRotationFromEuler之后。。还是报错:

我对threejs有点无语的一点是。。threejs的版本发布太勤了。。一天能发布一个版本。。从2013年7月发布r1到现在已经有差不多127个版本。。一个月一个版本的节奏。。。囧。。这也太快了吧。。回到原来的话题。。

.makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order。什么意思呢?就是说现在makeRotationFromEuler()函数现在只接受Euler旋转,而非Vector3 和 order

https://github.com/mrdoob/three.js/issues/10485

http://www.360doc.com/content/16/1028/22/2528039_602203279.shtml

Three.js欧拉对象Euler和四元数Quaternion:https://blog.csdn.net/u014291990/article/details/91877018

所以,Euler和Vector3的区别是。。。

 https://blog.csdn.net/DADADIE/article/details/41119647

THREE.Vector3 源代码:https://blog.csdn.net/soraduo/article/details/97919241

Three.Euler和Quaternion.Euler又是什么关系。。。天哪,好乱

three.js欧拉角和四元数的使用方法 对应关系

 https://blog.csdn.net/u014291990/article/details/91877018

那干嘛还要有vector3呢?如果Euler等于Vector3的话?Vector3表示一个轴。。。一个向量。。。

threejs的变迁史足以写一本书。。。

原文地址:https://www.cnblogs.com/2008nmj/p/14606833.html