Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 94 bytes modified
parent
032d70940a
commit
ee91f31d0b
|
@ -1120,10 +1120,10 @@ 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;
|
||||
|
|
Loading…
Reference in New Issue