Interface administrators, moderator
2,603
edits
m (Vortrex moved page element.setRotation to element.rotation: Function renamed in 1.4.0) |
No edit summary |
||
Line 1: | Line 1: | ||
{{ScriptItem | {{ScriptItem | ||
|endpoint = shared | |endpoint = shared | ||
|type = | |type = property | ||
|class = Element | |class = Element | ||
|name = | |name = rotation | ||
| | |returnTypes = Vec3 | ||
| | |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. | ||
}} | }} |