# MoveTo Some things are not smooth

**URL:** <https://forums.unrealengine.com/t/moveto-some-things-are-not-smooth/1261572>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [August 15, 2023, 7:19am UTC](https://forums.unrealengine.com/t/moveto-some-things-are-not-smooth/1261572 "2023-08-15T07:19:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ponponpon6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ponponpon6](https://forums.unrealengine.com/u/ponponpon6)\
**Post date:** [August 15, 2023, 7:19am UTC](https://forums.unrealengine.com/t/moveto-some-things-are-not-smooth/1261572/1 "2023-08-15T07:19:12Z")

</div>

I Creating prop bouncing motions for 2D games

The bouncing movement is implemented by finely changing the MoveTo value, but depending on the time, it may not be smooth, and in the case of multiple objects, it may not be smooth.

Anyone knows why this is happening and how to avoid it?

code:

```auto
    Start()<suspends> : void =

        set jumpForce = GetRandomFloat(JumpForceMin, JumpForceMax)

        set currentForce = vector2{ X := GetRandomFloat(InitForceXMin, InitForceXMax), Y := 0.0}
        loop:
            UpdateMove()

    UpdateMove()<suspends> : void =
        
        set currentForce = vector2{X:= currentForce.X, Y:= currentForce.Y + Gravity}
        toPos:vector3 = AddVector(GetTransform().Translation, currentForce)
        
        MoveResult := MoveTo(toPos, GetTransform().Rotation, 0.2)
        if (MoveResult = move_to_result.DestinationReached):
            OnMoveEnd()

    OnMoveEnd()<suspends> : void =
        tran := GetTransform()
        if(tran.Translation.Y >= FieldH):
            initPos:= vector3{ X := tran.Translation.X, Y := FieldH - 1.0, Z:= tran.Translation.Z}
                set currentForce = vector2{ X := currentForce.X, Y := -jumpForce}

```

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/f/e/0fe00d84b01b3f37f1691b76c8402c919140441c.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/f/e/0fe00d84b01b3f37f1691b76c8402c919140441c.mp4)

---

<div class="post-metadata">

**Author:** ![rasmus.sublab](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rasmus.sublab](https://forums.unrealengine.com/u/rasmus.sublab)\
**Post date:** [August 15, 2023, 8:36am UTC](https://forums.unrealengine.com/t/moveto-some-things-are-not-smooth/1261572/2 "2023-08-15T08:36:09Z")

</div>

> [@ponponpon6](#):
>
> `MoveTo`

Well the MoveTo is still kind of janky. I have done extensive testing and there is no way to completely eliminate imperfections. However adding Sleep() calls after each MoveTo() call can take care of the worst. Use Sleep(0.0) which sleeps for appx. 1 frame (not always exactly) and experiment with how many in a row you need to calm your transforms down. Usually I need two or three. Hope this helps

---

<div class="post-metadata">

**Author:** ![ManualPotato](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/manualpotato/32/1144902_2.png) [@ManualPotato](https://forums.unrealengine.com/u/ManualPotato)\
**Post date:** [August 15, 2023, 10:30am UTC](https://forums.unrealengine.com/t/moveto-some-things-are-not-smooth/1261572/3 "2023-08-15T10:30:34Z")

</div>

Is the video you attached captured immediately upon starting the session/game? I find there will be a period of up to about 30 seconds where it will be quite laggy, but this eventually settles and isn’t a problem in public islands. Your MoveTo duration is quite short.

---

<div class="post-metadata">

**Author:** ![ponponpon6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ponponpon6](https://forums.unrealengine.com/u/ponponpon6)\
**Post date:** [August 15, 2023, 3:04pm UTC](https://forums.unrealengine.com/t/moveto-some-things-are-not-smooth/1261572/4 "2023-08-15T15:04:58Z")

</div>

thank reply

I tried Sleep(0.0), Sleep(0.0) \* 2, Sleep(0.0) \* 3, but the result did not change.  
I hope EPIC Games will fix this bug

---

<div class="post-metadata">

**Author:** ![ponponpon6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ponponpon6](https://forums.unrealengine.com/u/ponponpon6)\
**Post date:** [August 15, 2023, 3:06pm UTC](https://forums.unrealengine.com/t/moveto-some-things-are-not-smooth/1261572/5 "2023-08-15T15:06:20Z")

</div>

thank reply

I published the attempt of ↑ privately and tried it on PS5,  
The result did not change. Also, the result was the same even if I left it for about 1 minute
