|
@@ -8,7 +8,7 @@
|
|
private _add = Vector3.Zero();
|
|
private _add = Vector3.Zero();
|
|
private _attachedMesh: AbstractMesh;
|
|
private _attachedMesh: AbstractMesh;
|
|
|
|
|
|
- public invertYAxis = false;
|
|
|
|
|
|
+ private _invertYAxis = false;
|
|
public position = Vector3.Zero();
|
|
public position = Vector3.Zero();
|
|
|
|
|
|
constructor(public name: string, size: number, scene: Scene, generateMipMaps = true) {
|
|
constructor(public name: string, size: number, scene: Scene, generateMipMaps = true) {
|
|
@@ -27,10 +27,10 @@
|
|
this._add.copyFromFloats(-1, 0, 0);
|
|
this._add.copyFromFloats(-1, 0, 0);
|
|
break;
|
|
break;
|
|
case 2:
|
|
case 2:
|
|
- this._add.copyFromFloats(0, this.invertYAxis ? 1 : -1, 0);
|
|
|
|
|
|
+ this._add.copyFromFloats(0, this._invertYAxis ? 1 : -1, 0);
|
|
break;
|
|
break;
|
|
case 3:
|
|
case 3:
|
|
- this._add.copyFromFloats(0, this.invertYAxis ? -1 : 1, 0);
|
|
|
|
|
|
+ this._add.copyFromFloats(0, this._invertYAxis ? -1 : 1, 0);
|
|
break;
|
|
break;
|
|
case 4:
|
|
case 4:
|
|
this._add.copyFromFloats(0, 0, 1);
|
|
this._add.copyFromFloats(0, 0, 1);
|