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

beta.r3js.org
-=yb4f310 2018-03-19 10:50:39 +01:00
parent a8bca943d4
commit 13dd3121d5
1 changed files with 3 additions and 4 deletions

View File

@ -181,6 +181,7 @@ GameLib.CustomCode.SnakeBody.prototype.applyToMesh = function() {
if (this.backupMesh) {
this.mesh.rotation.z += ((Math.PI / 2) * this.flip);
this.mesh.updateInstance('position');
}
/**
@ -303,11 +304,9 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
body.backupMesh.updateInstance('visible');
//body.mesh = this.meshBreadCorner.clone();
body.mesh = this.meshBreadCorner.clone();
//body.applyToMesh();
//body.mesh.updateInstance('position');
body.applyToMesh();
}
}