element.getRotation: Difference between revisions
m (Mex moved page Transformable.getRotation to transformable.getRotation) |
No edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ScriptItem | {{ScriptItem | ||
|endpoint = | |endpoint = shared | ||
|type = method | |type = method | ||
|class = | |class = Element | ||
|name = getRotation | |name = getRotation | ||
|parameters = void | |parameters = void | ||
|returnTypes = Vec3 | |returnTypes = Vec3 | ||
|usage = fetch the 3D rotation for the | |usage = fetch the 3D rotation for the element, in XYZ euler angles, in radians.<br><br>Note: This function is depreciated, please use the [[element.rotation|element.rotation]] property instead. | ||
|returnInfo = a Vec3 containing the rotation of the | |returnInfo = a Vec3 containing the rotation of the element, 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. | ||
}} | }} |
Latest revision as of 10:51, 28 August 2023
Method
Server and Client
Online and Offline
Vec3 element.getRotation(void)
Note: This function is depreciated, please use the element.rotation property instead.
Parameters
void | This method doesn't take any parameters. |
Return
Vec3 | A Vec3 containing the rotation of the element, in XYZ euler angles, in radians. |
Types
Shared
BlipShared
BuildingShared
ElementShared
EntityShared
MarkerShared
ObjectShared
PedShared
PhysicalShared
PlayerShared
Vehicle
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.
Related
Server Related
destroyElement
getElementCount
getElementFromId
getElementFromName
getElements
getElementsByType
element.children
element.clearExistsFor
element.dimension
element.existsFor
element.getData
element.getRotation
element.id
element.isCreatedFor
element.isLocal
element.isOwner
element.isSyncer
element.isType
element.name
element.netFlags
element.parent
element.position
element.removeAllData
element.removeData
element.resource
element.rotation
element.setData
element.setExistsFor
element.setRotation
element.setSyncer
element.streamInDistance
element.streamOutDistance
element.syncer
element.syncerId
element.type
Client Related
destroyElement
getElementCount
getElementFromId
getElementFromName
getElements
getElementsByType
element.children
element.clearExistsFor
element.dimension
element.existsFor
element.getData
element.getRotation
element.id
element.isCreatedFor
element.isLocal
element.isOwner
element.isSyncer
element.isType
element.name
element.netFlags
element.parent
element.position
element.removeAllData
element.removeData
element.resource
element.rotation
element.setData
element.setExistsFor
element.setRotation
element.setSyncer
element.streamInDistance
element.streamOutDistance
element.syncer
element.syncerId
element.type