Interface administrators, moderator
2,603
edits
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
|endpoint = server | |endpoint = server | ||
|type = method | |type = method | ||
|class = | |class = Element | ||
|name = getRotation | |name = getRotation | ||
|parameters = void | |parameters = void | ||
|returnTypes = Vec3 | |returnTypes = Vec3 | ||
|usage = fetch the 3D rotation for the | |usage = fetch the 3D rotation for the element, in XYZ euler angles, in radians | ||
|returnInfo = a Vec3 containing the rotation of the | |returnInfo = a Vec3 containing the rotation of the element, in XYZ euler angles, in radians | ||
|returnFail1 = Vec3 Vec3(0.0,0.0,0.0) | |returnFail1 = Vec3 Vec3(0.0,0.0,0.0) | ||
|notes = This function is computationally expensive, use [[Entity.heading|Entity.heading]] instead if you only need to fetch the Z rotation. | |notes = This function is computationally expensive, use [[Entity.heading|Entity.heading]] instead if you only need to fetch the Z rotation. | ||
}} | }} |