# Object rotation 'choppy'

**URL:** <https://forums.unrealengine.com/t/object-rotation-choppy/2443398>\
**Category:** Programming & Scripting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [April 6, 2025, 4:55pm UTC](https://forums.unrealengine.com/t/object-rotation-choppy/2443398 "2025-04-06T16:55:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![k3nzngtn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/k3nzngtn/32/761331_2.png) [@k3nzngtn](https://forums.unrealengine.com/u/k3nzngtn)\
**Post date:** [April 6, 2025, 4:55pm UTC](https://forums.unrealengine.com/t/object-rotation-choppy/2443398/1 "2025-04-06T16:55:40Z")

</div>

I use the following code to rotate an object. The rotation is sometimes smooth, usually during development, but once deployed it stutters and has random pauses in it.

What’s the best way to have a smooth consistent rotation for an object?

Code:

```auto
 @editable
    LightProps:[]creative_prop = array{creative_prop{}}

    OnBegin<override>()<suspends>:void=  
        loop:     
            Sleep(0.0) # Hack: prevent infinite loop

            if (Prop := LightProps[1]):
                PropTransform := Prop.GetTransform()
                Prop.MoveTo(PropTransform.Translation, PropTransform.Rotation.ApplyLocalRotationZ(10.0), 1.0)   

```
