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

beta.r3js.org
-=yb4f310 2018-03-24 13:22:37 +01:00
parent 032d70940a
commit ee91f31d0b
1 changed files with 6 additions and 2 deletions

View File

@ -1120,9 +1120,9 @@ GameLib.CustomCode.prototype.createCorner = function(body, temp) {
body.applyToMesh();
body.orientation = backupOrientation;
body.backupMesh = body.mesh;
body.backupMesh.orientation = body.orientation;
if (temp.orientation === GameLib.CustomCode.ORIENTATION_UP) {
body.backupMesh.position.y -= 0.5 * GameLib.CustomCode.BODY_SCALE_Y;
@ -1140,6 +1140,10 @@ GameLib.CustomCode.prototype.createCorner = function(body, temp) {
body.backupMesh.position.x -= 0.5 * GameLib.CustomCode.BODY_SCALE_X;
}
body.orientation = backupOrientation;
body.mesh.orientation = body.orientation;
body.mesh = this.createGameMesh(this.materialBreadCorner);
body.mesh.position.z = 5;