element.rotation: Difference between revisions

no edit summary
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 = method
|type = property
|class = Element
|class = Element
|name = setRotation
|name = rotation
|parameters = Vec3 rotation
|returnTypes = Vec3
|parameter1 = Vec3 rotation The euler XYZ rotation angles.
|returnInfo = a Vec3, containing the XYZ euler rotation of the element
|returnTypes = void
|returnFail1 = void
|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.
}}
}}
2,591

edits