6,834
edits
m (Vortrex moved page transformable.setRotation to element.setRotation) |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ScriptItem | {{ScriptItem | ||
|endpoint = | |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