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

beta.r3js.org
-=yb4f310 2018-03-24 12:21:26 +01:00
parent 1213f85a05
commit 5edbb1aec0
1 changed files with 8 additions and 0 deletions

View File

@ -1240,6 +1240,14 @@ GameLib.CustomCode.prototype.restore = function() {
}
clone.backupMesh.visible = true;
clone.backupMesh.position.x = clone.position.x * GameLib.CustomCode.BODY_SCALE_X + GameLib.CustomCode.GRID_OFFSET_X;
clone.backupMesh.position.y = clone.position.y * GameLib.CustomCode.BODY_SCALE_Y + GameLib.CustomCode.GRID_OFFSET_Y;
clone.backupMesh.position.z = 0.1;
clone.backupMesh.rotation.z = clone.orientation * Math.PI / 2;
clone.backupMesh.updateInstance('rotation');
clone.backupMesh.updateInstance('visible');
clone.mesh = this.createGameMesh(this.materialBreadCorner);