position(...)
position(val : number[]) : this;
Sets the position of the node.
Parameters
Parameter | Type | Description |
---|---|---|
val | number[] | The value to set the position to, in the following form: [x, y, z] . |
Returns
this
Example
myobject.position([1, 0, 0]);