MCPcopy
hub / github.com/4ian/GDevelop / setScaleZ

Function setScaleZ

Extensions/3D/A_RuntimeObject3D.ts:510–515  ·  view source on GitHub ↗

* Change the scale on Z axis of the object (changing its height). * * @param newScale The new scale (must be greater than 0).

(newScale: number)

Source from the content-addressed store, hash-verified

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).

Callers

nothing calls this directly

Calls 1

setDepthMethod · 0.65

Tested by

no test coverage detected