* Change the scale on Z axis of the object (changing its height). * * @param newScale The new scale (must be greater than 0).
(newScale: number)
| 508 | * @param newScale The new scale (must be greater than 0). |
| 509 | */ |
| 510 | setScaleZ(newScale: number): void { |
| 511 | if (newScale < 0) { |
| 512 | newScale = 0; |
| 513 | } |
| 514 | this.setDepth(this._originalDepth * newScale); |
| 515 | } |
| 516 | |
| 517 | /** |
| 518 | * Get the scale of the object (or the geometric average of X, Y and Z scale in case they are different). |