Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 56 bytes modified

beta.r3js.org
-=yb4f310 2018-03-12 20:57:00 +01:00
parent 0f4d6be12d
commit 7464653f15
1 changed files with 1 additions and 3 deletions

View File

@ -122,14 +122,12 @@ GameLib.CustomCode.SnakeBody = function(
if (GameLib.Utils.UndefinedOrNull(mesh)) {
throw new Error('no mesh specified');
}
this.mesh = mesh;
this.mesh = mesh.clone();
switch (this.bodyType) {
case GameLib.CustomCode.BODY_TYPE_HEAD :
mesh = this.meshEnd.clone();
break;
case GameLib.CustomCode.BODY_TYPE_TAIL :
mesh = this.meshEnd.clone();
mesh.rotation.z = Math.PI;
mesh.updateInstance('rotation');
position.x += 1;