TranslateObjectRotation
Rotate an entity with a constant speed.
Argument | Data Type | Needed | Default | Description |
---|---|---|---|---|
obj | object | - | ||
destination | vector3 | - | The destination rotation | |
duration | number | - | Total duration in ms | |
rotationOrder | number | - | The order yaw, pitch and roll is applied. Usually 2. Read more here |
Dont need to be called every frame
Example
local rot = GetEntityRotation(obj, 2)
TranslateObjectRotation(obj, rot + vec3(0.0, 0.0, 90.0), 5000, 2)
Last update: June 6, 2023
Created: June 6, 2023
Created: June 6, 2023