6,834
edits
No edit summary |
No edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{ScriptItem | {{ScriptItem | ||
|endpoint = shared | |endpoint = shared | ||
|type = | |type = property | ||
|class = Element | |class = Element | ||
|name = | |name = rotation | ||
|readonly = false | |||
| | |returnTypes = Vec3 | ||
|returnTypes = | |returnInfo = a Vec3, containing the XYZ euler rotation of the element | ||
| | |||
|usage = set the 3D rotation for the element, in XYZ euler angles | |usage = set the 3D rotation for the element, in XYZ euler angles | ||
|notes = This function is computationally expensive, use [[Entity.heading|Entity.heading]] instead if you only need to set the Z rotation. | |notes = This function is computationally expensive, use [[Entity.heading|Entity.heading]] instead if you only need to set the Z rotation. | ||
}} | }} |
edits