Simplify constructor of BodyPart

This commit is contained in:
yushijinhun 2018-10-20 22:28:58 +08:00
parent 11807953f2
commit 82711d9de1
No known key found for this signature in database
GPG Key ID: 5BC167F73EA558E4
1 changed files with 4 additions and 5 deletions

View File

@ -40,12 +40,11 @@ const esp = 0.002;
* Notice that innerLayer and outerLayer may NOT be the direct children of the Group. * Notice that innerLayer and outerLayer may NOT be the direct children of the Group.
*/ */
export class BodyPart extends THREE.Group { export class BodyPart extends THREE.Group {
readonly innerLayer: THREE.Object3D; constructor(
readonly outerLayer: THREE.Object3D; readonly innerLayer: THREE.Object3D,
constructor(innerLayer: THREE.Object3D, outerLayer: THREE.Object3D) { readonly outerLayer: THREE.Object3D
) {
super(); super();
this.innerLayer = innerLayer;
this.outerLayer = outerLayer;
} }
} }