Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 8 bytes modified
parent
8de161d6b2
commit
531b9d4222
|
@ -184,10 +184,10 @@ GameLib.CustomCode.SnakeBody.prototype.applyToMesh = function() {
|
|||
this.mesh.position.x = this.position.x + GameLib.CustomCode.GRID_OFFSET_X;
|
||||
this.mesh.position.y = this.position.y + GameLib.CustomCode.GRID_OFFSET_Y;
|
||||
|
||||
if ((this.mesh.rotation.z - (this.orientation * Math.PI / 2)) > Math.PI) {
|
||||
this.mesh.rotation.z -= Math.PI;
|
||||
this.mesh.updateInstance('rotation');
|
||||
}
|
||||
//if ((this.mesh.rotation.z - (this.orientation * Math.PI / 2)) > Math.PI) {
|
||||
// this.mesh.rotation.z -= Math.PI;
|
||||
// this.mesh.updateInstance('rotation');
|
||||
//}
|
||||
|
||||
this.mesh.rotation.z = this.orientation * Math.PI / 2;
|
||||
|
||||
|
|
Loading…
Reference in New Issue