所有物体基类。

This commit is contained in:
liteng 2018-09-19 12:06:43 +08:00
parent 4fdaa52f30
commit 2342f039b2
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
/**
* 所有物体基类
*/
function BaseObject() {
THREE.Object3D.call(this);
}
BaseObject.prototype = Object.create(THREE.Object3D.prototype);
BaseObject.prototype.constructor = BaseObject;
export default BaseObject;

View File