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

beta.r3js.org
-=yb4f310 2018-03-12 21:01:10 +01:00
parent 13cb4b74b4
commit db5c5f9e78
1 changed files with 3 additions and 3 deletions

View File

@ -130,9 +130,9 @@ GameLib.CustomCode.SnakeBody = function(
case GameLib.CustomCode.BODY_TYPE_HEAD :
break;
case GameLib.CustomCode.BODY_TYPE_TAIL :
mesh.rotation.z = Math.PI;
mesh.updateInstance('rotation');
position.x += 1;
this.mesh.rotation.z = Math.PI;
this.mesh.updateInstance('rotation');
this.position.x += 1;
break;
default :
throw new Error('unreachable statement');