transformable.getRotation

From GTA Connected
Revision as of 14:58, 24 August 2019 by Mex (talk | contribs) (Mex moved page Transformable.getRotation to transformable.getRotation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

Parameters

void This method doesn't take any parameters.

Return

Vec3 A Vec3 containing the rotation of the transformable, in XYZ euler angles.

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.