# rotation(...)

`rotation(val : number[]) : this;`

Sets the current rotation of the node, in the form `[x, y, z]`.

Components form angles, in degrees, around the x, y, and z axis of the parent node, in that order.

Default value: `[0, 0, 0]`

## Parameters

Parameter Type Description
val number[] The value to set the rotation to, in the following form: `[x, y, z]`.

`this`

## Example

``````myobject.rotation([90, 0, 0]);
// myobject is now rotated by 90 degrees around its x axis.``````
{"ft_lang_label":"__label__en","ft_lang_prob":0.6271958,"math_prob":0.96243435,"size":471,"snap":"2020-34-2020-40","text_gpt3_token_len":134,"char_repetition_ratio":0.1391863,"word_repetition_ratio":0.0,"special_character_ratio":0.30997878,"punctuation_ratio":0.26363635,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.95681906,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-08-09T05:26:10Z\",\"WARC-Record-ID\":\"<urn:uuid:950bb634-cc01-4bd9-9f63-19b4de938392>\",\"Content-Length\":\"91589\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:c4962b7c-d029-42be-8e59-5bce399532fb>\",\"WARC-Concurrent-To\":\"<urn:uuid:458c0a75-9da5-4ca3-9d0c-6d142811fa88>\",\"WARC-IP-Address\":\"52.85.144.93\",\"WARC-Target-URI\":\"https://docs.zap.works/studio/scripting/reference/node/functions/rotation-setter/\",\"WARC-Payload-Digest\":\"sha1:UKX6UYZYPQ4O2NBVKUKAVS7IGWVRUF7Q\",\"WARC-Block-Digest\":\"sha1:CH7AUHLLAYJ4WU3V2KAL5ZQPIACIWWHH\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-34/CC-MAIN-2020-34_segments_1596439738425.43_warc_CC-MAIN-20200809043422-20200809073422-00106.warc.gz\"}"}