element.rotation: Difference between revisions
m (Mex moved page Transformable.setRotation to transformable.setRotation) |
No edit summary |
||
Line 2: | Line 2: | ||
|endpoint = server | |endpoint = server | ||
|type = method | |type = method | ||
|class = | |class = Element | ||
|name = setRotation | |name = setRotation | ||
|parameters = Vec3 rotation | |parameters = Vec3 rotation | ||
Line 8: | Line 8: | ||
|returnTypes = void | |returnTypes = void | ||
|returnFail1 = void | |returnFail1 = void | ||
|usage = set the 3D rotation for the | |usage = set the 3D rotation for the element, in XYZ euler angles | ||
|notes = This function is computationally expensive, use [[Entity.heading|Entity.heading]] instead if you only need to set the Z rotation. | |notes = This function is computationally expensive, use [[Entity.heading|Entity.heading]] instead if you only need to set the Z rotation. | ||
}} | }} |
Revision as of 15:52, 26 December 2021
Method
Server Only
Online and Offline
void element.setRotation(Vec3 rotation)
Parameters
1) | Vec3 | rotation | The euler XYZ rotation angles. |
Return
void | This method doesn't return a value. |
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 set 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