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

beta.r3js.org
-=yb4f310 2018-03-15 11:55:26 +01:00
parent 6a864c95e8
commit 192b74231a
1 changed files with 9 additions and 2 deletions

View File

@ -231,8 +231,6 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
);
} else {
var temp = {
x : body.position.x,
@ -265,6 +263,15 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
} else {
if (body.bodyType === GameLib.CustomCode.BODY_TYPE_CORNER) {
body.mesh.geometry = null;
body.mesh.materials = null;
body.mesh.remove();
body.mesh = body.backupMesh;
body.mesh.visible = true;
body.mesh.updateInstance('visible');
}
body.bodyType = backup.bodyType;
}