element.rotation: Difference between revisions
Jump to navigation
Jump to search
m (Mex moved page Transformable.setRotation to transformable.setRotation) |
(No difference)
|
Revision as of 14:59, 24 August 2019
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.