scale(...)
Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.
scale(val : number[]) : this;
Sets the scale of the node.
Default value: [1, 1, 1]
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
val | number[] | The value to set the scale to, in the following form: [x, y, z] . |
Returns
Section titled “Returns”this
Example
Section titled “Example”myobject.scale([0.5, 0.5, 0.5]);// myobject is now half the size