transformable.setRotation

Revision as of 14:59, 24 August 2019 by Mex (talk | contribs) (Mex moved page Transformable.setRotation to transformable.setRotation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Method Server Only icon-iii.png icon-vc.png icon-sa.png icon-iv.png 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.