element.getRotation: Difference between revisions
Jump to navigation
Jump to search
m (Mex moved page Transformable.getRotation to transformable.getRotation) |
No edit summary |
||
| Line 6: | Line 6: | ||
|parameters = void | |parameters = void | ||
|returnTypes = Vec3 | |returnTypes = Vec3 | ||
|usage = fetch the 3D rotation for the transformable, in XYZ euler angles | |usage = fetch the 3D rotation for the transformable, in XYZ euler angles, in radians | ||
|returnInfo = a Vec3 containing the rotation of the transformable, in XYZ euler angles | |returnInfo = a Vec3 containing the rotation of the transformable, 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. | ||
}} | }} | ||
Revision as of 13:24, 21 April 2021
getRotation
Signature: void getRotation(void)
Usage: fetch the 3D rotation for the transformable, in XYZ euler angles, in radians
Return
void
On failure: Vec3 Vec3(0.0,0.0,0.0)