Quantcast
Channel: Question and Answer » curves
Viewing all articles
Browse latest Browse all 18

How do I quantify the curvature of a touch swipe?

$
0
0

I’m implementing a touch controller for my game.

I am attempting to imitate Tiki Taka Soccer‘s “ball shooting” controls (gameplay video), where the curvature of the player’s swipe affects the curve of the shot’s trajectory.

Tiki Taka Soccer ball shooting swipe mechanic

Basically, I want to move the object to where the user raised their finger, but also apply a curve to the movement, corresponding to the curve of the swipe.

How can I do this?


I’m using Unity 5, and I’ll be using the Lean Touch plugin from the asset store to capture swipes.


Viewing all articles
Browse latest Browse all 18

Trending Articles