Download

Dragging objects is different on iPad than mobile preview

When I package my game and launch it on iPad, dragged objects move differently than they do in the mobile preview. Any thoughts on what I’m doing wrong?

For example, on this level, the object no longer faces the direction of the movement.
Mobile preview:
https://youtu.be/hsTymeb3OKY

iPad:
https://youtu.be/Fg4FBAazaf4

I’m using UE4.26 and iOS 14.4.

Here are my BPs:
2a87f28be87f1465b9636fbb594acd6261cd8521.png
https://forums.unrealengine.com/core/image/gif;base64

5db1220049fe7a67d5f3951c69a4ab4f3e3c8cdd.png
4518268f438689b1eecc739cba0819f61ab9432f.png

Looks like you are using Get Mouse Delta, which maybe doesn’t work on mobile.

One way to get around this is to save the last touch position in a variable, then substract it from the current touch position, and that will get you the delta.

That did the trick! I figured using Get Input Mouse Delta was going to be the culprit. just couldn’t figure how to replicate it for touch.Thank you!

Nice blog, BTW.