6,834
edits
m (Mex moved page Transformable.setRotation to transformable.setRotation) |
No edit summary |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{ScriptItem | {{ScriptItem | ||
|endpoint = | |endpoint = shared | ||
|type = | |type = property | ||
|class = | |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 | |||
|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