transformable.setRotation
Method
Server Only
Online and Offline
Available since Server 1.0.0
void transformable.setRotation(Vec3 rotation)
The transformable.setRotation method is used to set the 3D rotation for the transformable, in XYZ euler angles.
Parameters
1) | Vec3 | rotation | The euler XYZ rotation angles. |
Return
void | This method doesn't return a value. |
Types
Client
Transformable
Notes
- This function is computationally expensive, use Entity.heading instead if you only need to set the Z rotation.
Examples
There aren't any examples for this method.
Compatibility
There isn't any compatibility information for this method.