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
Method
Server Only
Online and Offline
Available since Server 1.0.0
Vec3 transformable.getRotation(void)
The transformable.getRotation method is used to fetch the 3D rotation for the transformable, in XYZ euler angles, in radians.
Parameters
void | This method doesn't take any parameters. |
Return
Vec3 | A Vec3 containing the rotation of the transformable, in XYZ euler angles, in radians. |
Types
Client
Transformable
Notes
- This function is computationally expensive, use Entity.heading instead if you only need to fetch the Z rotation.
Examples
There aren't any examples for this method.
Compatibility
There isn't any compatibility information for this method.